[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH master f14-branch 2/2] readvars should split variables into at most 2 pieces



This lets it handle things like:

repo=hd:UUID=A1EA-85CC:/
stage2=hd:LABEL="Fedora"
---
 loader/readvars.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/readvars.c b/loader/readvars.c
index b453175..da175c3 100644
--- a/loader/readvars.c
+++ b/loader/readvars.c
@@ -62,7 +62,7 @@ GHashTable *readvars_parse_string(gchar *contents) {
     }
 
     while (i < argc) {
-        gchar **tokens = g_strsplit(argv[i], "=", 0);
+        gchar **tokens = g_strsplit(argv[i], "=", 2);
         guint len = g_strv_length(tokens);
         gchar *key = NULL, *value = NULL;
         e = NULL;
-- 
1.7.2.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]