aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen/rpc_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rpcgen/rpc_main.c')
-rw-r--r--usr.bin/rpcgen/rpc_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c
index 5b35f54a6a8f..eb74c5243e3b 100644
--- a/usr.bin/rpcgen/rpc_main.c
+++ b/usr.bin/rpcgen/rpc_main.c
@@ -111,7 +111,7 @@ static void checkfiles(const char *, const char *);
#define ARGLISTLEN 20
#define FIXEDARGS 2
-static const char *arglist[ARGLISTLEN];
+static char *arglist[ARGLISTLEN];
static int argcount = FIXEDARGS;
@@ -931,7 +931,7 @@ addarg(const char *cp)
crash();
/*NOTREACHED*/
}
- arglist[argcount++] = cp;
+ arglist[argcount++] = strdup(cp);
}
@@ -943,7 +943,7 @@ putarg(int place, const char *cp)
crash();
/*NOTREACHED*/
}
- arglist[place] = cp;
+ arglist[place] = strdup(cp);
}
/*