=== modified file 'TODO' --- TODO 2016-03-07 23:39:36 +0000 +++ TODO 2016-03-17 20:40:55 +0000 @@ -37,8 +37,6 @@ ** kernel command line option for debug info * mandos (server) -** TODO Fix bug: it does not exit on SIGTERM until poked via D-Bus -** TODO Convert to Python 3 by using own Avahi module, same as GnuTLS ** TODO [#B] --notify-command This would allow the mandos.service to use --notify-command="systemd-notify --pid READY=1" === modified file 'plugins.d/plymouth.c' --- plugins.d/plymouth.c 2016-02-28 14:22:10 +0000 +++ plugins.d/plymouth.c 2016-03-17 20:40:55 +0000 @@ -174,11 +174,15 @@ } } - char **new_argv = NULL; + char **new_argv = malloc(sizeof(const char *)); + if(new_argv == NULL){ + error_plus(0, errno, "malloc"); + _exit(EX_OSERR); + } char **tmp; int i = 0; for (; argv[i]!=NULL; i++){ - tmp = realloc(new_argv, sizeof(const char *) * ((size_t)i + 1)); + tmp = realloc(new_argv, sizeof(const char *) * ((size_t)i + 2)); if(tmp == NULL){ error_plus(0, errno, "realloc"); free(new_argv);