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.
This commit is contained in:
Sybren A. Stüvel 2020-07-27 17:03:32 +02:00
parent c7ee66e517
commit bd4b29d63d
1 changed files with 1 additions and 1 deletions

View File

@ -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");