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
path: root/extern
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-08-05 14:03:31 +0400
committerJens Verwiebe <info@jensverwiebe.de>2014-08-05 14:03:31 +0400
commit5efa7fa534c343a50e2fc62d76de171cd808bae2 (patch)
tree76adc66f0a6eca64e7f94cf6e6ebc1df23cb0f79 /extern
parentb3e3ca7464074ca76cd8761f9a94724ff6730349 (diff)
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
Diffstat (limited to 'extern')
-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 9ba65ac310a..da892efc0f4 100644
--- a/extern/cuew/src/cuew.c
+++ b/extern/cuew/src/cuew.c
@@ -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 );
}
}