diff --git a/modules/plugin/base/src/nsPluginsDirWin.cpp b/modules/plugin/base/src/nsPluginsDirWin.cpp index 7a13ff5bff5..879090653f5 100644 --- a/modules/plugin/base/src/nsPluginsDirWin.cpp +++ b/modules/plugin/base/src/nsPluginsDirWin.cpp @@ -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); } diff --git a/modules/plugin/nglsrc/nsPluginsDirWin.cpp b/modules/plugin/nglsrc/nsPluginsDirWin.cpp index 7a13ff5bff5..879090653f5 100644 --- a/modules/plugin/nglsrc/nsPluginsDirWin.cpp +++ b/modules/plugin/nglsrc/nsPluginsDirWin.cpp @@ -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); }