Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
147:fc9af77b06b9 | 157:a46a4b443410 |
---|---|
114 inprofile = false; | 114 inprofile = false; |
115 | 115 |
116 /* If we are in a profile parse path related stuff */ | 116 /* If we are in a profile parse path related stuff */ |
117 if (inprofile) | 117 if (inprofile) |
118 { | 118 { |
119 value = line; | 119 key = strtok(line, "="); |
120 key = strsep(&value, "="); | 120 value = strtok(NULL, "="); |
121 str_trim(&value); | 121 str_trim(&value); |
122 if (str_equal(key, "Path")) | 122 if (str_equal(key, "Path")) |
123 { | 123 { |
124 if (relative_path) | 124 if (relative_path) |
125 snprintf(path, LINEBUFLEN, "%s/%s", inifile_dirname, value); | 125 snprintf(path, LINEBUFLEN, "%s/%s", inifile_dirname, value); |