From 9de78f29a491a85177ae2fadeafaab8e806614bb Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Sun, 5 Dec 1999 18:04:27 +0000 Subject: Make dselect build again Don't copy strings when reading fileslists --- dselect/main.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dselect') diff --git a/dselect/main.cc b/dselect/main.cc index d25e3b5b7..632d1ba4b 100644 --- a/dselect/main.cc +++ b/dselect/main.cc @@ -48,7 +48,7 @@ extern "C" { #include "pkglist.h" const char thisname[]= DSELECT; -const char printforhelp[]= N_("Type %s --help for help.", DSELECT); +const char printforhelp[]= N_("Type dselect --help for help."); modstatdb_rw readwrite; const char *admindir= ADMINDIR; @@ -75,16 +75,17 @@ static const menuentry menuentries[]= { }; static const char programdesc[]= - N_("Debian Linux `%s' package handling frontend.", DSELECT); + N_("Debian Linux `%s' package handling frontend."); static const char copyrightstring[]= N_( "Version %s. Copyright (C) 1994-1996 Ian Jackson. This is\n" "free software; see the GNU General Public Licence version 2 or later for\n" - "copying conditions. There is NO warranty. See dselect --licence for details.\n", - DPKG_VERSION_ARCH); + "copying conditions. There is NO warranty. See dselect --licence for details.\n"); static void printversion(void) { - if (fprintf(stdout,"%s\n%s",gettext(programdesc),gettext(copyrightstring)) == EOF) werr("stdout"); + if (fprintf(stdout,gettext(programdesc),DSELECT) == EOF) werr("stdout"); + if (fprintf(stdout,"\n") == EOF) werr("stdout"); + if (fprintf(stdout,gettext(copyrightstring), DPKG_VERSION_ARCH) == EOF) werr("stdout"); } static void usage(void) { -- cgit v1.2.3