Module Name:    src
Committed By:   pooka
Date:           Fri Aug  3 14:52:31 UTC 2012

Modified Files:
        src/lib/librumpclient: rumpclient.c

Log Message:
force-terminate commname


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/lib/librumpclient/rumpclient.c

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

Modified files:

Index: src/lib/librumpclient/rumpclient.c
diff -u src/lib/librumpclient/rumpclient.c:1.49 src/lib/librumpclient/rumpclient.c:1.50
--- src/lib/librumpclient/rumpclient.c:1.49	Fri Aug  3 11:31:34 2012
+++ src/lib/librumpclient/rumpclient.c	Fri Aug  3 14:52:31 2012
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpclient.c,v 1.49 2012/08/03 11:31:34 pooka Exp $	*/
+/*      $NetBSD: rumpclient.c,v 1.50 2012/08/03 14:52:31 pooka Exp $	*/
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -49,7 +49,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rumpclient.c,v 1.49 2012/08/03 11:31:34 pooka Exp $");
+__RCSID("$NetBSD: rumpclient.c,v 1.50 2012/08/03 14:52:31 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/mman.h>
@@ -390,6 +390,7 @@ handshake_req(struct spclient *spc, int 
 		} else {
 			static char commname[128];
 
+			memset(commname, 0, sizeof(commname));
 			if (read(fd, commname, sizeof(commname)) > 0) {
 				char *n;
 

Reply via email to