From 8bf5b4a3a3504fd2dc7f9bf7e2774db9b6ece0cb Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 9 May 2002 09:29:55 +0000 Subject: [PATCH] Changed regexp syntax --- mbfido/hatch.c | 4 ++-- mbfido/magic.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mbfido/hatch.c b/mbfido/hatch.c index 140711a0..73ac1f33 100644 --- a/mbfido/hatch.c +++ b/mbfido/hatch.c @@ -138,8 +138,8 @@ int CheckHatch(char *temp) case '.': *q++ = '\\'; *q++ = '.'; break; case '+': *q++ = '\\'; *q++ = '+'; break; case '*': *q++ = '.'; *q++ = '*'; break; - case '@': sprintf(q, "[:alpha:]"); while (*q) q++; break; - case '#': sprintf(q, "[:digit:]"); while (*q) q++; break; + case '@': sprintf(q, "[A-Za-z]"); while (*q) q++; break; + case '#': sprintf(q, "[0-9]"); while (*q) q++; break; default: *q++ = *p; break; } p++; diff --git a/mbfido/magic.c b/mbfido/magic.c index d202c16d..cf62e117 100644 --- a/mbfido/magic.c +++ b/mbfido/magic.c @@ -144,8 +144,8 @@ int GetMagicRec(int Typ, int First) case '.': *q++ = '\\'; *q++ = '.'; break; case '+': *q++ = '\\'; *q++ = '+'; break; case '*': *q++ = '.'; *q++ = '*'; break; - case '@': sprintf(q, "[:alpha:]"); while (*q) q++; break; - case '#': sprintf(q, "[:digit:]"); while (*q) q++; break; + case '@': sprintf(q, "[A-Za-z]"); while (*q) q++; break; + case '#': sprintf(q, "[0-9]"); while (*q) q++; break; default: *q++ = *p; break; } p++;