ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/VTBFileUtil2/ScanUtility.cxx
(Generate patch)

Comparing trunk/VTBFileUtil2/ScanUtility.cxx (file contents):
Revision 292 by douglas, 2003-09-08T18:43:28-07:00 vs.
Revision 295 by douglas, 2003-09-11T21:26:54-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: ScanUtility.cxx,v 1.17 2003/09/09 01:43:28 douglas Exp $
5 > // $Id: ScanUtility.cxx,v 1.18 2003/09/12 04:26:54 douglas Exp $
6  
7   #include "ScanUtility.h"
8  
# Line 423 | Line 423 | void ScanUtility::populate(HWND parent)
423  
424                          char scan[MAX_PATH];
425  
426 <                        sprintf(scan, "%s", (*itor).c_str());
426 >                        StringCchPrintf(scan, MAX_PATH, "%s", (*itor).c_str());
427  
428                          LVITEM item;
429  
# Line 480 | Line 480 | int ScanUtility::browse(HWND dialog, UIN
480                                  data->saveDir.length()) + 1];
481                          LPITEMIDLIST id;
482  
483 <                        wsprintfW(path, toWide(HIWORD(d) ? data->scanDir :
483 >                        StringCchPrintfW(path, (HIWORD(d) ? data->scanDir.length() :
484 >                                data->saveDir.length()) + 1, toWide(HIWORD(d) ? data->scanDir :
485                                  data->saveDir).c_str());
486  
487                          if (debug) cerr << "path = " << toAnsi(path) << "\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines