diff options
author | 2006-04-02 20:21:19 +0000 | |
---|---|---|
committer | 2006-04-02 20:21:19 +0000 | |
commit | cba594ec70085172818f62fbb0184321592a48af (patch) | |
tree | d3726cb85d10b2e9243e7f5a28b4961aa20e5c6d | |
parent | When setting timestamps TOSERVER having write permissions is adaquate; (diff) | |
download | wireguard-openbsd-cba594ec70085172818f62fbb0184321592a48af.tar.xz wireguard-openbsd-cba594ec70085172818f62fbb0184321592a48af.zip |
test char against '\0', not 0
-rw-r--r-- | usr.bin/mg/fileio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/fileio.c b/usr.bin/mg/fileio.c index d3429f22cdb..8b332174efd 100644 --- a/usr.bin/mg/fileio.c +++ b/usr.bin/mg/fileio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fileio.c,v 1.68 2005/12/20 06:17:36 kjell Exp $ */ +/* $OpenBSD: fileio.c,v 1.69 2006/04/02 20:21:19 kjell Exp $ */ /* This file is in the public domain. */ @@ -442,8 +442,8 @@ make_file_list(char *buf) if (buf[0] && buf[strlen(buf) - 1] != '/') { file = strrchr(dir, '/'); if (file) { - *file = 0; - if (*dir == 0) + *file = '\0'; + if (*dir == '\0') dir = "/"; } else return (NULL); |