зеркало из https://github.com/mozilla/pjs.git
bug=23157
r=av a=waterson Don't use hard coded 2000. Instead use sizeof(path).
This commit is contained in:
Родитель
abf50564e5
Коммит
45e10cfc16
|
@ -138,7 +138,7 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
|
|||
|
||||
plugDir += "plugins";
|
||||
*(nsFileSpec*)this = plugDir;
|
||||
PR_snprintf(path, 2000, "%s", (const char *) plugDir);
|
||||
PR_snprintf(path, sizeof(path), "%s", (const char *) plugDir);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
|
|||
|
||||
plugDir += "plugins";
|
||||
*(nsFileSpec*)this = plugDir;
|
||||
PR_snprintf(path, 2000, "%s", (const char *) plugDir);
|
||||
PR_snprintf(path, sizeof(path), "%s", (const char *) plugDir);
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче