Mercurial > trustbridge
changeset 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 | fb3b2d77518f |
files | cinst/mozilla.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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")) {