aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/mac_updater
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/mac_updater')
-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