diff cinst/mozilla.c @ 157:a46a4b443410

Use strtok instead of strsep for portability.
author Sascha Wilde <wilde@intevation.de>
date Tue, 25 Mar 2014 09:30:42 +0100
parents fc9af77b06b9
children a9e4454dee97
line wrap: on
line diff
--- a/cinst/mozilla.c	Mon Mar 24 17:24:37 2014 +0100
+++ b/cinst/mozilla.c	Tue Mar 25 09:30:42 2014 +0100
@@ -116,8 +116,8 @@
           /* If we are in a profile parse path related stuff */
           if (inprofile)
             {
-              value = line;
-              key = strsep(&value, "=");
+              key = strtok(line, "=");
+              value = strtok(NULL, "=");
               str_trim(&value);
               if (str_equal(key, "Path"))
                 {

http://wald.intevation.org/projects/trustbridge/