gui: Don't ignore SIGHUP.
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 4d2c9f72a5fe7ba303653654df82fc84d3f4ed0e..c20bb7ac98c5d05a9c63c9103a69873b257f0dad 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);
@@ -560,7 +560,6 @@ static void setup_signal_handling(void)
        para_install_sighandler(SIGCHLD);
        para_install_sighandler(SIGWINCH);
        para_install_sighandler(SIGUSR1);
-       para_sigaction(SIGHUP, SIG_IGN);
 }
 
 /* kill every process in the process group and exit */