summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 313a2a6..b71b07c 100644
--- a/misc.c
+++ b/misc.c
@@ -44,7 +44,7 @@ size_t str_copy(char *dest, size_t destsz, const char *src) {
}
++src; ++dest;
}
- dest[destsz-1] = 0;
+ *dest = 0;
return destsz-1;
}