[Pkg-wmaker-commits] [wmitime] 15/18: wmgeneral, wmsun: Use threadsafe functions.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Aug 22 01:36:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch upstream
in repository wmitime.
commit 519eb6d24ef7290abbdef154dfc2ce81d7c21a4e
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Sun Jun 14 17:04:48 2015 -0500
wmgeneral, wmsun: Use threadsafe functions.
---
wmgeneral/wmgeneral.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wmgeneral/wmgeneral.c b/wmgeneral/wmgeneral.c
index f707e7f..c624193 100644
--- a/wmgeneral/wmgeneral.c
+++ b/wmgeneral/wmgeneral.c
@@ -124,13 +124,13 @@ void parse_rcfile(const char *filename, rckeys *keys) {
char temp[128];
while (fgets(temp, 128, fp)) {
- char *q;
+ char *q, *saveptr;
char *tokens = " :\t\n";
int key;
key = 0;
q = strdup(temp);
- q = strtok(q, tokens);
+ q = strtok_r(q, tokens, &saveptr);
if(!q)
continue;
while (key >= 0 && keys[key].label) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmitime.git
More information about the Pkg-wmaker-commits
mailing list