/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugins.d/usplash.c

* plugins.d/usplash.c (main): BUG FIX: allocate space for the final
                              NULL in cmdline_argv.

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
  }
569
569
  
570
570
  /* Create argv for new usplash*/
571
 
  char **cmdline_argv = malloc(argz_count(cmdline, cmdline_len)
 
571
  char **cmdline_argv = malloc((argz_count(cmdline, cmdline_len) + 1)
572
572
                               * sizeof(char *)); /* Count args */
573
573
  if(cmdline_argv == NULL){
574
574
    error(0, errno, "malloc");