diff options
author | alfred <alfred@FreeBSD.org> | 2013-10-01 15:33:00 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2013-10-01 15:33:00 +0000 |
commit | 689b653e06e83d517341bb20206ecc99acb87702 (patch) | |
tree | 1cdacd9ea88805516cb3bc8af108d47837096ac9 | |
parent | e78fdc3603d406a561ded3ad0bee9be8948b0d87 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/ofed/include/linux/sysfs.h | 4 |
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. */ |