diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-04-28 01:07:27 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-04-28 01:07:27 +0000 |
| commit | 3174386dd61542b8d5e77712f928c5bd70b591db (patch) | |
| tree | e29bd26ab9f65572bd124e188a21b4a1744bcb54 /usr.sbin/sade/system.c | |
| parent | ba67e870cbc80aafbc0342a4c5d7bd70aadb11f9 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sade/system.c')
| -rw-r--r-- | usr.sbin/sade/system.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c index dc88f969026d..98362ed07b62 100644 --- a/usr.sbin/sade/system.c +++ b/usr.sbin/sade/system.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: system.c,v 1.52 1996/04/25 17:31:27 jkh Exp $ + * $Id: system.c,v 1.53 1996/04/26 18:19:38 jkh Exp $ * * Jordan Hubbard * @@ -192,7 +192,7 @@ vsystem(char *fmt, ...) char *cmd; int i; - cmd = (char *)malloc(FILENAME_MAX); + cmd = (char *)alloca(FILENAME_MAX); cmd[0] = '\0'; va_start(args, fmt); vsnprintf(cmd, FILENAME_MAX, fmt, args); @@ -228,7 +228,6 @@ vsystem(char *fmt, ...) i = (pid == -1) ? -1 : WEXITSTATUS(pstat); if (isDebug()) msgDebug("Command `%s' returns status of %d\n", cmd, i); - free(cmd); } return i; } |
