about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsthen <sthen>2013-06-03 20:33:17 +0000
committersthen <sthen>2013-06-03 20:33:17 +0000
commitc30653b1c34cff7ca527e15918595e8bea6941c3 (patch)
tree3e3ef5003cc6189909ad0f958ffd72dcca57c86f
parent5515a365ba77cec3e7bf9797c3a4cc5e6c5c91ae (diff)
parent09f327556155b606f108a920c8b8125cdd4f08bd (diff)
downloadcwm-c30653b1c34cff7ca527e15918595e8bea6941c3.tar.gz
cwm-c30653b1c34cff7ca527e15918595e8bea6941c3.tar.xz
cwm-c30653b1c34cff7ca527e15918595e8bea6941c3.zip
cvsimport
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 9e93749..5b88c42 100644
--- a/parse.y
+++ b/parse.y
@@ -467,13 +467,13 @@ nodigits:
 		}
 	}
 
+/* Similar to other parse.y copies, but also allows '/' in strings */
 #define allowed_in_string(x) \
 	(isalnum(x) || (ispunct(x) && x != '(' && x != ')' && \
 	x != '{' && x != '}' && x != '<' && x != '>' && \
-	x != '!' && x != '=' && x != '/' && x != '#' && \
-	x != ','))
+	x != '!' && x != '=' && x != '#' && x != ','))
 
-	if (isalnum(c) || c == ':' || c == '_' || c == '*') {
+	if (isalnum(c) || c == ':' || c == '_' || c == '*' || c == '/') {
 		do {
 			*p++ = c;
 			if ((unsigned)(p-buf) >= sizeof(buf)) {