[Pkg-wmaker-commits] [wmmon] 27/38: wmgeneral, wmsun: Use threadsafe functions.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Aug 12 22:43:08 UTC 2017


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmmon.

commit 64d1b7c0320b8ca70a7ed42109417be6411e2e2f
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/wmmon.git



More information about the Pkg-wmaker-commits mailing list