diff options
Diffstat (limited to 'qstd/str.c')
-rw-r--r-- | qstd/str.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,9 +39,9 @@ int string_equal(const char* a, const char* b) { int string_copy(char* dst, const char* src) { int i; - for (i = 0; *src; src++, dst++, i++) { + for (i = 0; *src; src++, dst++, i++) *dst = *src; - } + *dst = 0; return i; } |