From: Serge Hallyn Date: Fri, 28 Feb 2014 05:47:36 +0000 (-0600) Subject: on_path: use strtok_r consistently X-Git-Tag: lxc-1.1.0.alpha1~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b707e368496583ff85b0d8630c2fe5ccfc90a4d9;p=thirdparty%2Flxc.git on_path: use strtok_r consistently Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/utils.c b/src/lxc/utils.c index fc24985ca..0190a4764 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -1263,7 +1263,7 @@ bool on_path(char *cmd) { } next_loop: - entry = strtok(NULL, ":"); + entry = strtok_r(NULL, ":", &saveptr); } free(path);