diff options
Diffstat (limited to 'indra/mac_updater/mac_updater.cpp')
-rw-r--r-- | indra/mac_updater/mac_updater.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/mac_updater/mac_updater.cpp b/indra/mac_updater/mac_updater.cpp index df054fb94a..76c88bec5c 100644 --- a/indra/mac_updater/mac_updater.cpp +++ b/indra/mac_updater/mac_updater.cpp @@ -594,6 +594,7 @@ void *updatethreadproc(void*) char tempDir[PATH_MAX] = ""; FSRef tempDirRef; char temp[PATH_MAX]; + // *NOTE: This buffer length is used in a scanf() below. char deviceNode[1024] = ""; FILE *downloadFile = NULL; OSStatus err; @@ -918,7 +919,7 @@ void *updatethreadproc(void*) if(sub != NULL) { sub += strlen(prefix); - sscanf(sub, "%s", deviceNode); + sscanf(sub, "%1023s", deviceNode); } } |