summaryrefslogtreecommitdiff
path: root/str.c
diff options
context:
space:
mode:
Diffstat (limited to 'str.c')
-rw-r--r--str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/str.c b/str.c
index 2949564..b5e326d 100644
--- a/str.c
+++ b/str.c
@@ -15,7 +15,7 @@ size_t str_copy(char *dest, size_t destsz, const char *src) {
*dest = 0;
return 0;
}
- for (size_t i = 0; i < destsz-1; i++) {
+ for (size_t i = 0; i < destsz-1; ++i) {
*dest = *src;
if (!*src) {
*dest = 0;