fix bufferoverflow

This commit is contained in:
keil 2005-09-30 11:41:51 +00:00
parent e65e35a2cf
commit d3aea09f69
1 changed files with 2 additions and 2 deletions

View File

@ -469,7 +469,7 @@ int main(argc, argv)
XrmValue namein, pixelout;
time_t t;
struct tm *tm;
char now[20];
char now[32];
int a;
t = time(NULL);
@ -537,7 +537,7 @@ int main(argc, argv)
strcpy(label_format, label);
sprintf(now, "uninitialized %s", history);
snprintf(now, 32, "uninitialized %s", history);
XtSetArg (args[0], XtNlabel, now);
XtSetValues (label_wid, args, ONE);