Module Name:    src
Committed By:   christos
Date:           Mon Dec 21 20:44:54 UTC 2015

Modified Files:
        src/sys/arch/usermode/usermode: thunk.c

Log Message:
fix label and variable name.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/arch/usermode/usermode/thunk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/usermode/thunk.c
diff -u src/sys/arch/usermode/usermode/thunk.c:1.86 src/sys/arch/usermode/usermode/thunk.c:1.87
--- src/sys/arch/usermode/usermode/thunk.c:1.86	Mon Dec 21 14:54:35 2015
+++ src/sys/arch/usermode/usermode/thunk.c	Mon Dec 21 15:44:54 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.86 2015/12/21 19:54:35 christos Exp $ */
+/* $NetBSD: thunk.c,v 1.87 2015/12/21 20:44:54 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcne...@invisible.ca>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.86 2015/12/21 19:54:35 christos Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.87 2015/12/21 20:44:54 christos Exp $");
 #endif
 
 #include <sys/types.h>
@@ -768,10 +768,10 @@ thunk_getcpuinfo(char *cp, size_t *len)
 	if (rlen == -1)
 		goto out;
 
-	buf[rlen ? rlen - 1 : 0] = '\0';
+	cp[rlen ? rlen - 1 : 0] = '\0';
 	*len = rlen;
 	return 0;
-bad:
+out:
 	*len = 0;
 	return -1;
 }

Reply via email to