summaryrefslogtreecommitdiff
path: root/indra/win_updater
diff options
context:
space:
mode:
authorKaren Clark <karen@lindenlab.com>2007-03-20 22:21:42 +0000
committerKaren Clark <karen@lindenlab.com>2007-03-20 22:21:42 +0000
commitfceae96eb171be0396512e251aab311d4e3ef9cc (patch)
treee648d1dd42aeae4d47168bd8d696ff0895819b8b /indra/win_updater
parent5e9e67cb2d1d3dfc82dfe96103270b2341991ddd (diff)
svn merge -r59459:59476 svn+ssh://svn.lindenlab.com/svn/linden/branches/adroit.r69-75_2 into svn+ssh://svn.lindenlab.com/svn/linden/release.
Diffstat (limited to 'indra/win_updater')
-rw-r--r--indra/win_updater/updater.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/win_updater/updater.cpp b/indra/win_updater/updater.cpp
index 11ccb559c6..96ffd5f66a 100644
--- a/indra/win_updater/updater.cpp
+++ b/indra/win_updater/updater.cpp
@@ -14,6 +14,7 @@
#include <wininet.h>
#include <stdio.h>
+#include <stdarg.h>
#include "llpreprocessor.h"
#include "llfile.h"
@@ -488,11 +489,13 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nSho
char params[2048]; /* Flawfinder: ignore */
if (gIsSilent && gProgramName)
{
- snprintf(params, sizeof(params), "/S /P=\"%s\"", gProgramName); /* Flawfinder: ignore */
+ _snprintf(params, sizeof(params), "/S /P=\"%s\"", gProgramName); /* Flawfinder: ignore */
+ params[2047] = '\0';
}
else if (gProgramName)
{
- snprintf(params, sizeof(params), "/P=\"%s\"", gProgramName); /* Flawfinder: ignore */
+ _snprintf(params, sizeof(params), "/P=\"%s\"", gProgramName); /* Flawfinder: ignore */
+ params[2047] = '\0';
}
else if (gIsSilent)
{