]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Applied debian patch: opensuse_3_too_small_font_buffer.patch
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 9 Jul 2009 12:12:43 +0000 (12:12 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 9 Jul 2009 12:12:43 +0000 (12:12 +0000)
getconf.c
include/conf.h

index ee1eeb04847d1f996296f1228d9191afec913f25..f2fb8cc5c30d484fd1e63ecf97a3156934ad8d01 100644 (file)
--- a/getconf.c
+++ b/getconf.c
@@ -188,7 +188,8 @@ void parmtest(char *buf)
             printf("SARG: Maybe you have a broken record or garbage in header_font_size parameter.\n");
             exit(1);
          }
-         strcpy(HeaderFontSize,buf);
+         strncpy(HeaderFontSize,buf,sizeof(HeaderFontSize)-1);
+         HeaderFontSize[sizeof(HeaderFontSize)-1]=0;
          fixnone(HeaderFontSize);
          return;
       }
index 1aff9cc26e876a0ffa0473641372bda4858f6c46..6a9063fbce7fb6d5aa5ad69539e0035ce59f6440 100755 (executable)
@@ -214,7 +214,7 @@ char ShowSargLogo[5];
 char ParsedOutputLog[MAXLEN];
 char ParsedOutputLogCompress[255];
 char DisplayedValues[20];
-char HeaderFontSize[4];
+char HeaderFontSize[5];
 char TitleFontSize[5];
 char wwwDocumentRoot[MAXLEN];
 char ExternalCSSFile[MAXLEN];