summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpulser <pulser@villainrom.co.uk>2013-01-04 12:21:55 +0000
committerpulser <pulser@villainrom.co.uk>2013-01-04 12:21:55 +0000
commitae45f13cbc5abcb502f90783133682959dc6c5eb (patch)
tree479c730e73f35612129c9521ea88a2e4d4118531
parent3e61f1d12494ac0f456623681f12edf9b356245f (diff)
downloadandroid_system_vold-jellybean.tar.gz
android_system_vold-jellybean.tar.bz2
android_system_vold-jellybean.zip
Increase cmdline size supported to 1024jellybean
For RK30xx devices that seem to include the full partition mappings in their cmdline, making the cmdline ridiculously long and crashing vold. Change-Id: Ibcafbe584e4c034d60a45e9719f942066f2a7a48
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index afbfa41..aa611a2 100644
--- a/main.cpp
+++ b/main.cpp
@@ -162,7 +162,7 @@ static int parse_mount_flags(char *mount_flags)
static int process_config(VolumeManager *vm) {
FILE *fp;
int n = 0;
- char line[255];
+ char line[1024];
Volume *vol = 0;
if ((fp = fopen("/proc/cmdline", "r"))) {