summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2013-10-01 15:33:00 +0000
committeralfred <alfred@FreeBSD.org>2013-10-01 15:33:00 +0000
commit689b653e06e83d517341bb20206ecc99acb87702 (patch)
tree1cdacd9ea88805516cb3bc8af108d47837096ac9 /sys/ofed
parente78fdc3603d406a561ded3ad0bee9be8948b0d87 (diff)
downloadFreeBSD-src-689b653e06e83d517341bb20206ecc99acb87702.zip
FreeBSD-src-689b653e06e83d517341bb20206ecc99acb87702.tar.gz
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
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/include/linux/sysfs.h4
1 files changed, 0 insertions, 4 deletions
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. */
OpenPOWER on IntegriCloud