[Libreoffice-commits] online.git: tools/map.cpp

Tor Lillqvist tml at collabora.com
Thu Oct 26 09:08:42 UTC 2017


 tools/map.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a0b82c9fdb8bc4db967d1f589092a99d72f657e7
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Oct 26 12:02:28 2017 +0300

    Avoid warning: ā€˜%sā€™ directive output may be truncated writing up to 255 bytes
    
    ... into a region of size 58
    
    Change-Id: I725c537ed21553e9dc34ba006a39917e1549b6a7

diff --git a/tools/map.cpp b/tools/map.cpp
index 9ed47193..e5e16777 100644
--- a/tools/map.cpp
+++ b/tools/map.cpp
@@ -21,7 +21,7 @@
 #include <locale.h>
 
 #define MAP_SIZE 20
-#define PATH_SIZE 64
+#define PATH_SIZE 1000 // No harm in having it much larger than strictly necessary. Avoids compiler warning.
 #define BUFFER_SIZE 9600
 
 static int read_buffer(char *buffer, unsigned size,


More information about the Libreoffice-commits mailing list