diff options
author | Steven Bennetts <steve@lindenlab.com> | 2007-01-24 20:21:23 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2007-01-24 20:21:23 +0000 |
commit | ad94bca0d273869d6358719f4dbd515a905acd26 (patch) | |
tree | 52ae9f056f3dd6a938434d45d5295aef87e77e0a /indra/mac_updater | |
parent | 787ac69d75dbbd8ad79c32a5de54603351523eae (diff) |
merge -r 56696:57082 Branch_1-13-2
Diffstat (limited to 'indra/mac_updater')
-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); } } |