(wrong string) ée

From: <git_AT_suckless.org>
Date: Sat, 21 Jan 2017 16:46:27 +0100 (CET)

commit d1affdea923a0ac117ebb5e4c2e5011f59fd3188
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Sat Jan 21 16:46:19 2017 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Sat Jan 21 16:46:19 2017 +0100

    Forgot a bang...
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/src/util.c b/src/util.c
index 60e4cb0..6c1bd0a 100644
--- a/src/util.c
+++ b/src/util.c
_AT_@ -227,7 +227,7 @@ int
 xenopen(int status, const char *path, int flags, int mode, ...)
 {
         int fd;
- if (strncmp(path, "/dev/fd/", sizeof("/dev/fd/") - 1))
+ if (!strncmp(path, "/dev/fd/", sizeof("/dev/fd/") - 1))
                 if (!toi(path + sizeof("/dev/fd/") - 1, 0, INT_MAX, &fd))
                         return fd;
         fd = open(path, flags, mode);
Received on Sat Jan 21 2017 - 16:46:27 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 21 2017 - 16:48:28 CET