From d920e5d62020d751ccaa3491cc66275ade749011 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 18:52:48 +1100 Subject: building and running on windows with visual studio --- qstd/str.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qstd/str.c') diff --git a/qstd/str.c b/qstd/str.c index 2c74d4b..5dd97c4 100644 --- a/qstd/str.c +++ b/qstd/str.c @@ -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; } -- cgit v1.2.3-54-g00ecf