From: Ray Strode Date: Tue, 27 Jul 2010 22:43:32 +0000 (-0400) Subject: [main] Parse args at end of /proc/cmdline properly X-Git-Tag: 0.8.4~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f8a2c906e2f4ec92f47cc45d24a30539be65897;p=thirdparty%2Fplymouth.git [main] Parse args at end of /proc/cmdline properly We weren't treating \n as an acceptable boundary --- diff --git a/src/main.c b/src/main.c index 69a87455..8cb81fd4 100644 --- a/src/main.c +++ b/src/main.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -241,7 +242,7 @@ command_line_has_argument (const char *command_line, if (string == NULL) return false; - if (string[0] != ' ' && string[0] != '\0') + if (!isspace ((int) string[0]) && string[0] != '\0') return false; return true;