summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-12-09 04:18:23 +0000
committersabetts <sabetts>2004-12-09 04:18:23 +0000
commite4583f75b36a7d19ef6ad6bde31a6e01a9f3a340 (patch)
treefa32192cb93a4ed5f3a7688c57c70e8273745987 /src/actions.c
parente9d7e8af414956e9f43b5288bfe4a8ee53414e58 (diff)
downloadratpoison-e4583f75b36a7d19ef6ad6bde31a6e01a9f3a340.zip
(frestore): use strtok_r.
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index 6ff29a1..5cff28f 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -3771,6 +3771,7 @@ frestore (char *data, rp_screen *s)
rp_window *win;
struct list_head fset;
int max = -1;
+ char *nexttok;
if (data == NULL)
{
@@ -3781,7 +3782,7 @@ frestore (char *data, rp_screen *s)
INIT_LIST_HEAD (&fset);
dup = xstrdup (data);
- token = strtok (dup, ",");
+ token = strtok_r (dup, ",", &nexttok);
if (token == NULL)
{
message (" frestore: invalid frame format ");
@@ -3800,7 +3801,7 @@ frestore (char *data, rp_screen *s)
return NULL;
}
list_add_tail (&new->node, &fset);
- token = strtok (NULL, ",");
+ token = strtok_r (NULL, ",", nexttok);
}
free (dup);