aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2006-12-16 17:36:25 +0000
committerDimitri Sokolyuk <demon@dim13.org>2006-12-16 17:36:25 +0000
commit6cc6726370454e345a800fc1fff29535fb0f1239 (patch)
tree1653f5d4299a545b319567957c8b7ba84dd97eba
parent23334b414142b0189e2291b05ca58375637cb205 (diff)
typo
-rw-r--r--watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/watch.c b/watch.c
index 3e10711..aa4d38b 100644
--- a/watch.c
+++ b/watch.c
@@ -38,7 +38,7 @@ static const char version[] = "1.0";
#ifndef __dead
#define __dead __attribute__((noreturn))
#endif
-#define strlcpy(d,s,l) (strncpy(d,s,l), (d)[(l)-1 = '\0')
+#define strlcpy(d,s,l) (strncpy(d,s,l), (d)[(l) - 1] = '\0')
#define strlcat(d,s,l) strncat(d,s,(l) - strlen(d) - 1)
#endif