From 8a7fbf0cf36c134f93cdac06411413eb8b0561b6 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Wed, 7 Sep 2011 17:12:13 -0700 Subject: [PATCH] init: Increase buffer size for serialno and other properties set from kernel command line Fixes problem with last character truncated for 32 byte serial numbers. Change-Id: I9ad92d4e1c574bf3c174501581283a13772f0075 Signed-off-by: Mike Lockwood --- init/init.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init/init.c b/init/init.c index 5058b1785..5bd252526 100755 --- a/init/init.c +++ b/init/init.c @@ -59,12 +59,12 @@ static int bootchart_count; #endif static char console[32]; -static char serialno[32]; -static char bootmode[32]; -static char baseband[32]; -static char carrier[32]; -static char bootloader[32]; -static char hardware[32]; +static char serialno[PROP_VALUE_MAX]; +static char bootmode[PROP_VALUE_MAX]; +static char baseband[PROP_VALUE_MAX]; +static char carrier[PROP_VALUE_MAX]; +static char bootloader[PROP_VALUE_MAX]; +static char hardware[PROP_VALUE_MAX]; static unsigned revision = 0; static char qemu[32];