aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/mac_updater/mac_updater.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:48 -0500
committerJacek Antonelli2008-08-15 23:44:48 -0500
commit9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch)
tree2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/mac_updater/mac_updater.cpp
parentSecond Life viewer sources 1.13.2.12 (diff)
downloadmeta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz
Second Life viewer sources 1.13.2.15
Diffstat (limited to 'linden/indra/mac_updater/mac_updater.cpp')
-rw-r--r--linden/indra/mac_updater/mac_updater.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/mac_updater/mac_updater.cpp b/linden/indra/mac_updater/mac_updater.cpp
index 25e203c..2061ab4 100644
--- a/linden/indra/mac_updater/mac_updater.cpp
+++ b/linden/indra/mac_updater/mac_updater.cpp
@@ -613,6 +613,7 @@ void *updatethreadproc(void*)
613 char tempDir[PATH_MAX] = ""; 613 char tempDir[PATH_MAX] = "";
614 FSRef tempDirRef; 614 FSRef tempDirRef;
615 char temp[PATH_MAX]; 615 char temp[PATH_MAX];
616 // *NOTE: This buffer length is used in a scanf() below.
616 char deviceNode[1024] = ""; 617 char deviceNode[1024] = "";
617 FILE *downloadFile = NULL; 618 FILE *downloadFile = NULL;
618 OSStatus err; 619 OSStatus err;
@@ -937,7 +938,7 @@ void *updatethreadproc(void*)
937 if(sub != NULL) 938 if(sub != NULL)
938 { 939 {
939 sub += strlen(prefix); 940 sub += strlen(prefix);
940 sscanf(sub, "%s", deviceNode); 941 sscanf(sub, "%1023s", deviceNode);
941 } 942 }
942 } 943 }
943 944