зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
c4ceac4500
Коммит
419e5ee720
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче