From: Heiko Carstens Date: Thu, 29 Oct 2009 14:04:11 +0000 (+0100) Subject: [S390] call home: fix string length handling X-Git-Tag: v2.6.32-rc6~25^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8a79c9ec779168502402a8b834abf8cf38a325a;p=pandora-kernel.git [S390] call home: fix string length handling After copying uts->nodename to the static nodename array the static version isn't necessarily zero termininated, since the size of the array is one byte too short. Afterwards doing strncat(data, nodename, strlen(nodename)); may copy an arbitrary large amount of bytes. Fix this by getting rid of the static array and using strncat with proper length limit. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed