diff options
author | jkh <jkh@FreeBSD.org> | 1996-04-28 01:07:27 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-04-28 01:07:27 +0000 |
commit | 757f0d4140ba92ac2ff7e00fc840bf99ecee5f21 (patch) | |
tree | e29bd26ab9f65572bd124e188a21b4a1744bcb54 /usr.sbin/sade/system.c | |
parent | 7a8e35fbab581e26b8a60eeea29077d5d66b9e11 (diff) | |
download | FreeBSD-src-757f0d4140ba92ac2ff7e00fc840bf99ecee5f21.zip FreeBSD-src-757f0d4140ba92ac2ff7e00fc840bf99ecee5f21.tar.gz |
Move some of functions around in order to make this stuff easier
to work on.
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 dc88f96..98362ed 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; } |