OSDN Git Service

Fix wrong buffer size passed to strncpy
authorMichael Heimpold <michael.heimpold@s2000.tu-chemnitz.de>
Mon, 4 Oct 2010 19:54:24 +0000 (21:54 +0200)
committerChris Larson <chris_larson@mentor.com>
Wed, 27 Oct 2010 16:42:58 +0000 (09:42 -0700)
commit30753da4f0af492c0c00813afc30d12ede8e82da
tree5fb8280fddd14445c1ace14d8816a29f9120a774
parent2b7340390935b916e1bddfce3b98d972b00f866c
Fix wrong buffer size passed to strncpy

Use a define which represents the destination buffer instead
of the string length of the source string.
Also, instead of a call to memset use a faster assignment.

Signed-off-by: Michael Heimpold <michael.heimpold -at- s2000.tu-chemnitz.de>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
src/ts_parse_vars.c