From: nekral-guest Date: Fri, 3 Jun 2011 21:08:56 +0000 (+0000) Subject: * src/sulogin.c: Added Prog, needed because of the last xmalloc() X-Git-Tag: 4.1.5~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce737cf543df84220f96b96672beba11ef440668;p=shadow * src/sulogin.c: Added Prog, needed because of the last xmalloc() change. --- diff --git a/ChangeLog b/ChangeLog index 27a1890a..e40db48a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-03 Nicolas François + + * src/sulogin.c: Added Prog, needed because of the last xmalloc() + change. + 2011-06-03 Nicolas François * man/zh_CN/, man/zh_CN/Makefile.am: Added directory, and zh_CN diff --git a/src/sulogin.c b/src/sulogin.c index edf06323..bd21f3cf 100644 --- a/src/sulogin.c +++ b/src/sulogin.c @@ -49,6 +49,8 @@ /* * Global variables */ +const char *Prog; + static char name[BUFSIZ]; static char pass[BUFSIZ]; @@ -101,6 +103,7 @@ static RETSIGTYPE catch_signals (unused int sig) tcsetattr (0, TCSANOW, &termio); #endif + Prog = Basename (argv[0]); (void) setlocale (LC_ALL, ""); (void) bindtextdomain (PACKAGE, LOCALEDIR); (void) textdomain (PACKAGE);