Changeset 7019
- Timestamp:
- Nov 2, 2008, 3:58:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/platform.c
r6992 r7019 271 271 { 272 272 #ifdef WIN32 273 SHGetFolderPath( NULL, CSIDL_MYDOCUMENTS, NULL, 0, home ); 273 char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */ 274 *appdata = '\0'; 275 SHGetFolderPath( NULL, CSIDL_MYDOCUMENTS, NULL, 0, appdata ); 276 home = tr_strdup( appdata ); 274 277 #elif defined( __BEOS__ ) || defined( __AMIGAOS4__ ) 275 278 home = tr_strdup( "" ); … … 309 312 path = tr_strdup( "PROGDIR:.transmission" ); 310 313 #elif defined( WIN32 ) 311 char appdata[MAX_PATH _LENGTH];314 char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */ 312 315 SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata ); 313 316 path = tr_buildPath( appdata, "Transmission", NULL );
Note: See TracChangeset
for help on using the changeset viewer.