diff options
author | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
commit | 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch) | |
tree | 2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/mac_updater/mac_updater.cpp | |
parent | Second Life viewer sources 1.13.2.12 (diff) | |
download | meta-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.cpp | 3 |
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 | ||