Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Oct 2013 15:33:00 +0000 (UTC)
From:      Alfred Perlstein <alfred@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255968 - head/sys/ofed/include/linux
Message-ID:  <201310011533.r91FX0YU029630@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alfred
Date: Tue Oct  1 15:33:00 2013
New Revision: 255968
URL: http://svnweb.freebsd.org/changeset/base/255968

Log:
  Fix mis-merge of upstream fix.
  
  We would accidentally make the string one byte too short.
  
  Submitted by: Orit Moskovich (oritm mellanox.com)
  
  Approved by:	re

Modified:
  head/sys/ofed/include/linux/sysfs.h

Modified: head/sys/ofed/include/linux/sysfs.h
==============================================================================
--- head/sys/ofed/include/linux/sysfs.h	Tue Oct  1 12:01:20 2013	(r255967)
+++ head/sys/ofed/include/linux/sysfs.h	Tue Oct  1 15:33:00 2013	(r255968)
@@ -105,10 +105,6 @@ sysctl_handle_attr(SYSCTL_HANDLER_ARGS)
 			/* Trim trailing newline. */
 			buf[len] = '\0';
 		}
-
-		/* Trim trailing newline. */
-		len--;
-		((char*)buf)[len] = '\0';
 	}
 
 	/* Leave one trailing byte to append a newline. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310011533.r91FX0YU029630>