diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2013-10-01 15:33:00 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2013-10-01 15:33:00 +0000 |
commit | babfea95f9ca61400a94eb8da97699961af07401 (patch) | |
tree | 1cdacd9ea88805516cb3bc8af108d47837096ac9 /sys/ofed | |
parent | 6b7adc0cbdf1425c7a4b317aa590946f2770cda4 (diff) | |
download | src-babfea95f9ca61400a94eb8da97699961af07401.tar.gz src-babfea95f9ca61400a94eb8da97699961af07401.zip |
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
Notes
Notes:
svn path=/head/; revision=255968
Diffstat (limited to 'sys/ofed')
-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 cb1f7b2b5900..3e99f3f13fe7 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. */ |