# HG changeset patch # User Sascha Wilde # Date 1395736242 -3600 # Node ID a46a4b443410edf77dbf1cffef975e9390865946 # Parent fc9af77b06b97088dfc082647dbd3ba2dcfe0fc9 Use strtok instead of strsep for portability. diff -r fc9af77b06b9 -r a46a4b443410 cinst/mozilla.c --- 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")) {