From: Dan Carpenter Date: Fri, 1 Aug 2014 08:25:14 +0000 (+0300) Subject: ghes_edac: Use snprintf() to silence a static checker warning X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~26^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=665aa8cdc499b9aeea6532e682a58ca34b7f94e6;p=pandora-kernel.git ghes_edac: Use snprintf() to silence a static checker warning My static checker complains because the "e->location" has up to 256 characters but we are copying it into the "pvt->detail_location" which only has space for 240 characters. That's not counting the surrounding text and the "e->other_detail" string which can be over 80 characters long. I am not familiar with this code but presumably it normally works. Let's add a limit though for safety. Signed-off-by: Dan Carpenter Acked-by: Mauro Carvalho Chehab Link: http://lkml.kernel.org/r/20140801082514.GD28869@mwanda Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed