Commit 732903ec authored by Adam Reichold's avatar Adam Reichold Committed by Albert Astals Cid

Fix buffer size warning due to missing space for null terminator in pdfseparate.

parent 791e0246
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
// Copyright (C) 2013 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp> // Copyright (C) 2013 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
// Copyright (C) 2017 Léonard Michelet <leonard.michelet@smile.fr> // Copyright (C) 2017 Léonard Michelet <leonard.michelet@smile.fr>
// Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com> // Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
// Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
// //
//======================================================================== //========================================================================
#include "config.h" #include "config.h"
...@@ -88,7 +89,7 @@ static bool extractPages (const char *srcFileName, const char *destFileName) { ...@@ -88,7 +89,7 @@ static bool extractPages (const char *srcFileName, const char *destFileName) {
foundmatch = true; foundmatch = true;
*p = 'A'; *p = 'A';
} else { } else {
char pattern[5]; char pattern[6];
for (int i = 2; i < 10; i++) { for (int i = 2; i < 10; i++) {
sprintf(pattern, "%%0%dd", i); sprintf(pattern, "%%0%dd", i);
p = strstr(auxDestFileName, pattern); p = strstr(auxDestFileName, pattern);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment