diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 18:18:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-26 18:18:39 +0000 |
commit | 2aacbe764c90218cb8383efbd4f6f74812b3b00c (patch) | |
tree | 81b20a3e4ce235fc055ef13325c6a93d60db6179 /op.c | |
parent | 0683ae4e4796968fd85df1298c360084add99c9d (diff) | |
download | rtmux-2aacbe764c90218cb8383efbd4f6f74812b3b00c.tar.gz rtmux-2aacbe764c90218cb8383efbd4f6f74812b3b00c.tar.bz2 rtmux-2aacbe764c90218cb8383efbd4f6f74812b3b00c.zip |
Whoops, these need to be terminated.
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: op.c,v 1.3 2007-09-26 18:14:48 nicm Exp $ */ +/* $Id: op.c,v 1.4 2007-09-26 18:18:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -31,6 +31,7 @@ op_new(char *path, int argc, char **argv) char name[MAXNAMELEN]; int opt; + *name = '\0'; optind = 1; while ((opt = getopt(argc, argv, "n:?")) != EOF) { switch (opt) { @@ -69,6 +70,7 @@ op_attach(char *path, int argc, char **argv) char name[MAXNAMELEN]; int opt; + *name = '\0'; optind = 1; while ((opt = getopt(argc, argv, "n:?")) != EOF) { switch (opt) { |