Fix possible harmful warning: the value of the size argument in 'strncat' is too large, change the argument to be the free space in the destination buffer minus the terminating null byte
This commit is contained in:
2
extern/cuew/src/cuew.c
vendored
2
extern/cuew/src/cuew.c
vendored
@@ -686,7 +686,7 @@ int cuewCompilerVersion(void) {
|
||||
|
||||
while (!feof(pipe)) {
|
||||
if (fgets(buf, sizeof(buf), pipe) != NULL) {
|
||||
strncat(output, buf, sizeof(output) - strlen(output));
|
||||
strncat(output, buf, sizeof(output) - strlen(output) - 1 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user