Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysfs.c: fix an theoretical issue with snprintf()
Again, code scanners really don't like C string functions, and warn about the potential for a buffer to possibly be too big for a snprintf() call as the checking wasn't quite correct. Fix the check for a buffer overflow up better and handle any potential issues that checking tools could come up with. No real functional change as the sysfs path should be just fine. And really, this is all just userspace code... Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information