mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
b3e3ca7464
commit
5efa7fa534
1 changed files with 1 additions and 1 deletions
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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue