[hackers] [dwm] removed the only one and superfloues strncmp

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Wed May 23 22:34:43 2007

changeset: 896:9fb6e8e6715b
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Wed May 23 22:33:46 2007 +0200
summary: removed the only one and superfloues strncmp

diff -r b461240ba625 -r 9fb6e8e6715b main.c
--- a/main.c Wed May 23 14:51:51 2007 +0200
+++ b/main.c Wed May 23 22:33:46 2007 +0200
@@ -278,7 +278,7 @@ main(int argc, char *argv[]) {
         fd_set rd;
         XEvent ev;
 
- if(argc == 2 && !strncmp("-v", argv[1], 3))
+ if(argc == 2 && !strcmp("-v", argv[1]))
                 eprint("dwm-"VERSION", © 2004-2007 Anselm R. Garbe, Sander van Dijk\n");
         else if(argc != 1)
                 eprint("usage: dwm [-v]\n");
Received on Wed May 23 2007 - 22:34:43 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:47 UTC