[hackers] [dmenu] minor modification || a

From: <hg_AT_suckless.org>
Date: Tue, 9 Dec 2008 21:55:53 +0000 (UTC)

changeset: 281:255a0b42b1b6
tag: tip
user: a_AT_null
date: Tue Dec 09 21:55:47 2008 +0000
files: dmenu.c
description:
minor modification

diff -r 750799d32847 -r 255a0b42b1b6 dmenu.c
--- a/dmenu.c Tue Sep 09 20:45:07 2008 +0100
+++ b/dmenu.c Tue Dec 09 21:55:47 2008 +0000
@@ -396,10 +396,7 @@
         default:
                 if(num && !iscntrl((int) buf[0])) {
                         buf[num] = 0;
- if(len > 0)
- strncat(text, buf, sizeof text);
- else
- strncpy(text, buf, sizeof text);
+ strncpy(text + len, buf, sizeof text - len);
                         match(text);
                 }
                 break;
Received on Tue Dec 09 2008 - 21:55:53 UTC

This archive was generated by hypermail 2.2.0 : Tue Dec 09 2008 - 22:00:07 UTC