diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-27 18:03:32 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-27 18:03:32 +0300 |
commit | bd4b29d63de6cccdb524e965b28b8cf68e169cef (patch) | |
tree | 95f118d1b7b33b05f688df4a57422ea301916b6e /extern | |
parent | c7ee66e517b2ae54f1304ae9b0085e6ed7a246c2 (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')
-rw-r--r-- | extern/cuew/src/cuew.c | 2 |
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"); |