]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui.c
web: Remove "/" character in <br> elements.
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 4d2c9f72a5fe7ba303653654df82fc84d3f4ed0e..54fc9db98bd91ad836eb79288d42927eadcb1fcf 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -294,7 +294,7 @@ static char *configfile_exists(void)
 static void add_spaces(WINDOW* win, unsigned int num)
 {
        char space[] = "                                ";
-       unsigned sz = sizeof(space);
+       unsigned sz = sizeof(space) - 1; /* number of spaces */
 
        while (num >= sz)  {
                waddstr(win, space);
@@ -526,7 +526,7 @@ static int add_output_line(char *line, void *data)
 
 static int loglevel;
 
-__printf_2_3 void curses_log(int ll, const char *fmt,...)
+static __printf_2_3 void curses_log(int ll, const char *fmt,...)
 {
        int color;
        char *msg;