Permalink
Browse files

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
  • Loading branch information...
1 parent e78fdc3 commit 689b653e06e83d517341bb20206ecc99acb87702 @splbio splbio committed Oct 1, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 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. */

0 comments on commit 689b653

Please sign in to comment.