/mandos/trunk

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

« back to all changes in this revision

Viewing changes to plugins.d/usplash.c

  • Committer: teddy at bsnet
  • Date: 2010-09-15 17:21:04 UTC
  • Revision ID: teddy@fukt.bsnet.se-20100915172104-eopud55s7dc6vkfj
* 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");