]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: sym_expand_string_value: allow for string termination when reallocing
authorAndy Whitcroft <apw@canonical.com>
Mon, 1 Nov 2010 21:01:44 +0000 (21:01 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Nov 2010 21:06:00 +0000 (17:06 -0400)
commit135e61d96ab8e33c12f523da06a441f5472d1b94
treed93471ca98f605e4e453405ad3f60ab35b8b0d96
parent60aa2608429597aa1ae15232c1084ecd1fcd07b0
kconfig: sym_expand_string_value: allow for string termination when reallocing

When expanding a parameterised string we may run out of space, this
triggers a realloc.  When computing the new allocation size we do not
allow for the terminating '\0'.  Allow for this when calculating the new
length.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/kconfig/symbol.c