diff options
author | quou <quou@disroot.org> | 2024-12-27 18:52:48 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-27 18:52:48 +1100 |
commit | d920e5d62020d751ccaa3491cc66275ade749011 (patch) | |
tree | e806a95c598e255f9883de98cc350a3b9279d0ce /qstd/str.c | |
parent | e8c93463b2ae5114f0c88e768e5625abac9d5a50 (diff) |
building and running on windows with visual studio
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; } |