diff options
| author | Devin Teske <dteske@FreeBSD.org> | 2016-01-27 06:21:35 +0000 |
|---|---|---|
| committer | Devin Teske <dteske@FreeBSD.org> | 2016-01-27 06:21:35 +0000 |
| commit | b888adc78493115b32d09da614e61791cc780a47 (patch) | |
| tree | aef9d0ceec08c870165bbe1f1c291bb260d97d6a /lib/libdpv | |
| parent | 138b115fcba0f175be97dbeb0669e7dc20c29ec8 (diff) | |
Notes
Diffstat (limited to 'lib/libdpv')
| -rw-r--r-- | lib/libdpv/dialog_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libdpv/dialog_util.c b/lib/libdpv/dialog_util.c index d047a25e5ae3..267d7a56dfdb 100644 --- a/lib/libdpv/dialog_util.c +++ b/lib/libdpv/dialog_util.c @@ -261,6 +261,13 @@ dialog_spawn_gauge(char *init_prompt, pid_t *pid) errx(EXIT_FAILURE, "Out of memory?!"); sprintf(dargv[n++], "--title"); dargv[n++] = title; + } else { + if ((dargv[n] = malloc(8)) == NULL) + errx(EXIT_FAILURE, "Out of memory?!"); + sprintf(dargv[n++], "--title"); + if ((dargv[n] = malloc(8)) == NULL) + errx(EXIT_FAILURE, "Out of memory?!"); + sprintf(dargv[n++], ""); } if (backtitle != NULL) { if ((dargv[n] = malloc(12)) == NULL) |
