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. git-svn-id: svn://10.0.0.236/trunk@84628 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
72b07c9ffc
commit
84f05f2b89
@ -200,7 +200,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;
|
||||
@ -285,7 +285,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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user