aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2008-05-18 23:10:24 +0200
committerSam Ravnborg <sam@ravnborg.org>2008-05-19 20:14:49 +0200
commit107f43a0f7282511ec570214a0b8f639224ff525 (patch)
tree2c4006f2ed9614f09aa5f60dc96a6800055f5712 /scripts/kconfig
parent7b97887eab6c35d23f2e4680bd5e285415068f35 (diff)
downloadkernel_samsung_espresso10-107f43a0f7282511ec570214a0b8f639224ff525.zip
kernel_samsung_espresso10-107f43a0f7282511ec570214a0b8f639224ff525.tar.gz
kernel_samsung_espresso10-107f43a0f7282511ec570214a0b8f639224ff525.tar.bz2
kconfig: incorrect 'len' field initialisation ?
1) The field 'len' of the 'gstr' structure seems to track the size of the memory already allocated for the "growable string". So the value of this field should be the same as the 'malloc()' just above, shouldn't it ? Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c
index f8e73c0..3cc9f93 100644
--- a/scripts/kconfig/util.c
+++ b/scripts/kconfig/util.c
@@ -77,7 +77,7 @@ struct gstr str_new(void)
{
struct gstr gs;
gs.s = malloc(sizeof(char) * 64);
- gs.len = 16;
+ gs.len = 64;
strcpy(gs.s, "\0");
return gs;
}