From bd4b29d63de6cccdb524e965b28b8cf68e169cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 27 Jul 2020 17:03:32 +0200 Subject: [PATCH] Cleanup: fixed compiler warning about `strncat` `strncat(command, "x", 1)` is the same as `strcat(command, "x")`, except that the latter form doesn't trigger a GCC warning. No functional changes. --- extern/cuew/src/cuew.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/cuew/src/cuew.c b/extern/cuew/src/cuew.c index f477ec48a18..7a1b0018a24 100644 --- a/extern/cuew/src/cuew.c +++ b/extern/cuew/src/cuew.c @@ -879,7 +879,7 @@ int cuewCompilerVersion(void) { } /* get --version output */ - strncat(command, "\"", 1); + strcat(command, "\""); strncat(command, path, sizeof(command) - 1); strncat(command, "\" --version", sizeof(command) - strlen(path) - 1); pipe = popen(command, "r");