aewl
diff client.c @ 581:601842ee4484
applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line printage proposal for stdin reading.
author | arg@mig29 |
---|---|
date | Sun, 26 Nov 2006 14:26:53 +0100 |
parents | 787f6ae02f29 |
children | a75123ef4b5f |
line diff
1.1 --- a/client.c Sun Nov 26 13:31:36 2006 +0100 1.2 +++ b/client.c Sun Nov 26 14:26:53 2006 +0100 1.3 @@ -361,12 +361,12 @@ 1.4 if(!name.nitems) 1.5 return; 1.6 if(name.encoding == XA_STRING) 1.7 - strncpy(c->name, (char *)name.value, sizeof(c->name)); 1.8 + strncpy(c->name, (char *)name.value, sizeof c->name); 1.9 else { 1.10 if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success 1.11 && n > 0 && *list) 1.12 { 1.13 - strncpy(c->name, *list, sizeof(c->name)); 1.14 + strncpy(c->name, *list, sizeof c->name); 1.15 XFreeStringList(list); 1.16 } 1.17 }