From: Michael Orlitzky Date: Sun, 5 Jul 2026 20:23:32 +0000 (-0400) Subject: main.c: fix strcat -> strcpy on first use X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2f2fba9b248204729319cd6f59207fb8fa6e6d95;p=iconv-quirks.git main.c: fix strcat -> strcpy on first use --- diff --git a/main.c b/main.c index 1b57b3a..cb02297 100644 --- a/main.c +++ b/main.c @@ -99,7 +99,7 @@ int _my_iconv_close(iconv_t* cd) { int test_iconv_open_supports_suffix(const char* suffix) { const char* fromcode = "ASCII"; char* tocode = malloc(strlen(fromcode) + strlen(suffix) + 1); - strcat(tocode, fromcode); + strcpy(tocode, fromcode); strcat(tocode, suffix); char msg[59];