/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/plymouth.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:
286
286
  }
287
287
  
288
288
  /* we got cmdline and cmdline_len, ignore rest... */
289
 
  char **argv = malloc((argz_count(cmdline, cmdline_len)+1)
 
289
  char **argv = malloc((argz_count(cmdline, cmdline_len) + 1)
290
290
                       * sizeof(char *)); /* Get number of args */
291
291
  if(argv == NULL){
292
292
    error(0, errno, "argv = malloc()");