Turn sprintf argument into literaral string, shutting up gcc warning

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Mikhail Gusarov 2010-05-13 01:51:37 +07:00
parent f62ba192c2
commit ff2b4cf832

View File

@ -161,7 +161,6 @@ void
OsInit(void)
{
static Bool been_here = FALSE;
static char* admpath = ADMPATH;
static char* devnull = "/dev/null";
char fname[PATH_MAX];
@ -229,8 +228,8 @@ OsInit(void)
{
FILE *err;
if (strlen (display) + strlen (admpath) + 1 < sizeof fname)
sprintf (fname, admpath, display);
if (strlen (display) + strlen (ADMPATH) + 1 < sizeof fname)
sprintf (fname, ADMPATH, display);
else
strcpy (fname, devnull);
/*