Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpclient force-terminate commname
details: https://anonhg.NetBSD.org/src/rev/8e8308fc4944
branches: trunk
changeset: 780688:8e8308fc4944
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Aug 03 14:52:31 2012 +0000
description:
force-terminate commname
diffstat:
lib/librumpclient/rumpclient.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 058c8018a466 -r 8e8308fc4944 lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c Fri Aug 03 14:27:02 2012 +0000
+++ b/lib/librumpclient/rumpclient.c Fri Aug 03 14:52:31 2012 +0000
@@ -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 @@
} else {
static char commname[128];
+ memset(commname, 0, sizeof(commname));
if (read(fd, commname, sizeof(commname)) > 0) {
char *n;
Home |
Main Index |
Thread Index |
Old Index