Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-07-27 18:03:32 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-07-27 18:03:32 +0300
commitbd4b29d63de6cccdb524e965b28b8cf68e169cef (patch)
tree95f118d1b7b33b05f688df4a57422ea301916b6e /extern/cuew
parentc7ee66e517b2ae54f1304ae9b0085e6ed7a246c2 (diff)
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.
Diffstat (limited to 'extern/cuew')
-rw-r--r--extern/cuew/src/cuew.c2
1 files changed, 1 insertions, 1 deletions
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");