From 61a1910f91fe6aba428193087d6c3ff21374ee5e Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Sun, 26 Nov 2006 14:26:53 +0100 Subject: applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line printage proposal for stdin reading. --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 220d2a02..74cadb5f 100644 --- a/client.c +++ b/client.c @@ -361,12 +361,12 @@ updatetitle(Client *c) { if(!name.nitems) return; if(name.encoding == XA_STRING) - strncpy(c->name, (char *)name.value, sizeof(c->name)); + strncpy(c->name, (char *)name.value, sizeof c->name); else { if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success && n > 0 && *list) { - strncpy(c->name, *list, sizeof(c->name)); + strncpy(c->name, *list, sizeof c->name); XFreeStringList(list); } } -- cgit v1.2.3