From: Stefan Weil Date: Mon, 30 Dec 2013 11:35:43 +0000 (+0100) Subject: Documentation: Fix size parameter for snprintf X-Git-Tag: v3.14-rc1~128^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e641c943fd5355592b7b955fe3d0f07c927a0aa;p=pandora-kernel.git Documentation: Fix size parameter for snprintf cppcheck reports this error: Documentation/laptops/hpfall.c:33]: (error) Dangerous usage of 'devname' (strncpy doesn't always 0-terminate it) The terminating '\0' is needed for the global char array unload_heads_path, so never write the last array entry (which is initially '\0'). Signed-off-by: Stefan Weil Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed