diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2014-08-05 14:03:31 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2014-08-05 14:03:31 +0400 |
commit | 5efa7fa534c343a50e2fc62d76de171cd808bae2 (patch) | |
tree | 76adc66f0a6eca64e7f94cf6e6ebc1df23cb0f79 | |
parent | b3e3ca7464074ca76cd8761f9a94724ff6730349 (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
-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 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 ); } } |