Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser Revert previous



details:   https://anonhg.NetBSD.org/src/rev/fef487875a34
branches:  trunk
changeset: 1008503:fef487875a34
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Mar 24 14:47:02 2020 +0000

description:
Revert previous

It will be addressed in a better way.

Requested by <kre>

diffstat:

 lib/librumpuser/rumpuser_sp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1247cc5545fe -r fef487875a34 lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Tue Mar 24 13:44:21 2020 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Tue Mar 24 14:47:02 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.73 2020/03/24 01:56:56 kamil Exp $  */
+/*      $NetBSD: rumpuser_sp.c,v 1.74 2020/03/24 14:47:02 kamil Exp $  */
 
 /*
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -37,7 +37,7 @@
 #include "rumpuser_port.h"
 
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.73 2020/03/24 01:56:56 kamil Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.74 2020/03/24 14:47:02 kamil Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -717,7 +717,7 @@
 
        /* ensure comm is 0-terminated */
        /* TODO: make sure it contains sensible chars? */
-       comm[commlen - 1] = '\0';
+       comm[commlen] = '\0';
 
        lwproc_switch(spc->spc_mainlwp);
        lwproc_execnotify(comm);
@@ -981,7 +981,7 @@
 
                        /* ensure it's 0-terminated */
                        /* XXX make sure it contains sensible chars? */
-                       comm[commlen - 1] = '\0';
+                       comm[commlen] = '\0';
 
                        /* make sure we fork off of proc1 */
                        _DIAGASSERT(lwproc_curlwp() == NULL);



Home | Main Index | Thread Index | Old Index