From 689b653e06e83d517341bb20206ecc99acb87702 Mon Sep 17 00:00:00 2001 From: alfred Date: Tue, 1 Oct 2013 15:33:00 +0000 Subject: 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 --- sys/ofed/include/linux/sysfs.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/ofed') diff --git a/sys/ofed/include/linux/sysfs.h b/sys/ofed/include/linux/sysfs.h index cb1f7b2..3e99f3f 100644 --- a/sys/ofed/include/linux/sysfs.h +++ b/sys/ofed/include/linux/sysfs.h @@ -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. */ -- cgit v1.1