diff options
author | Brian C. Lane <bcl@redhat.com> | 2010-08-26 16:40:51 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2010-08-27 11:21:15 -0700 |
commit | 943447b8058375c3d8e04d2a354e3868359532a4 (patch) | |
tree | b448ebf9b2a0435f4d8020d8c7deb0317aae9e56 /loader/readvars.c | |
parent | 8f2ee40098b8ab5634c3b02ec834913080cb5168 (diff) | |
download | anaconda-943447b8058375c3d8e04d2a354e3868359532a4.tar.gz anaconda-943447b8058375c3d8e04d2a354e3868359532a4.tar.xz anaconda-943447b8058375c3d8e04d2a354e3868359532a4.zip |
readvars should split variables into at most 2 pieces
This lets it handle things like:
repo=hd:UUID=A1EA-85CC:/
stage2=hd:LABEL="Fedora"
Diffstat (limited to 'loader/readvars.c')
-rw-r--r-- | loader/readvars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/readvars.c b/loader/readvars.c index b45317528..da175c3ce 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; |