diff options
author | wtc%netscape.com <devnull@localhost> | 2001-01-09 01:35:40 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-01-09 01:35:40 +0000 |
commit | 2ff58887be284b6fc15d5a4ff44d9d58a5c01132 (patch) | |
tree | d9d42f482f2e45b88c2a1786e1ec416991ed388f | |
parent | 79eee1937865d9d91eaee1351178fa3716915fc1 (diff) | |
download | nspr-hg-2ff58887be284b6fc15d5a4ff44d9d58a5c01132.tar.gz |
Bugzilla bug #64666: using a minus (-) in a scan set is not portable.
Thanks to Michael Kaply <mkaply@us.ibm.com> for the bug report and patch.
(NSPRPUB_CLIENT_BRANCH)
-rw-r--r-- | pr/src/io/prlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/src/io/prlog.c b/pr/src/io/prlog.c index e5033bbd..398a2edd 100644 --- a/pr/src/io/prlog.c +++ b/pr/src/io/prlog.c @@ -181,7 +181,7 @@ void _PR_InitLog(void) PRInt32 bufSize = DEFAULT_BUF_SIZE; while (pos < evlen) { PRIntn level = 1, count = 0, delta = 0; - count = sscanf(&ev[pos], "%64[A-Za-z0-9]%n:%d%n", + count = sscanf(&ev[pos], "%64[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]%n:%d%n", module, &delta, &level, &delta); pos += delta; if (count == 0) break; @@ -266,7 +266,7 @@ static void _PR_SetLogModuleLevel( PRLogModuleInfo *lm ) while (pos < evlen) { PRIntn level = 1, count = 0, delta = 0; - count = sscanf(&ev[pos], "%64[A-Za-z0-9]%n:%d%n", + count = sscanf(&ev[pos], "%64[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]%n:%d%n", module, &delta, &level, &delta); pos += delta; if (count == 0) break; |