From 99dfa1dad2c7f43e6ff9ac8fb5df2d4bf3fd714d Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 17 Jun 2004 03:33:33 +0000 Subject: [PATCH] va_arg fix --- src/libthread/id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libthread/id.c b/src/libthread/id.c index e920b87b..d32a92f2 100644 --- a/src/libthread/id.c +++ b/src/libthread/id.c @@ -64,7 +64,7 @@ threadsetname(char *fmt, ...) free(t->cmdname); va_start(arg, fmt); t->cmdname = vsmprint(fmt, arg); - va_end(fmt); + va_end(arg); /* Plan 9 only if(p->nthreads == 1){