commit 1fb4c49fa2db6a2ac6c8ee22673c38554af552a0
parent c67bf3ca6b39babf4aa0e3fa5a09ec9630a1e6e8
Author: Russ Cox <rsc@swtch.com>
Date: Sun, 29 Jun 2008 10:58:39 -0400
9vx: fix another strdup bug
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/9vx/main.c b/src/9vx/main.c
@@ -144,7 +144,9 @@ main(int argc, char **argv)
if(username == nil && (username = getuser()) == nil)
username = "tor";
- kstrdup(&eve, username);
+ eve = strdup(username);
+ if(eve == nil)
+ panic("strdup eve");
mach0init();
mmuinit();