Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/filesys_log.cpp
Parent Directory
| Revision Log
| Patch
| 1344 |
*/ |
*/ |
| 1345 |
wchar_t *FLogGetLogFilename(const wchar_t *log_filename) |
wchar_t *FLogGetLogFilename(const wchar_t *log_filename) |
| 1346 |
{ |
{ |
| 1347 |
const char *logdir; |
char *logdir; |
| 1348 |
|
|
| 1349 |
if (strlen(ts.LogDefaultPath) > 0) { |
if (strlen(ts.LogDefaultPath) > 0) { |
| 1350 |
logdir = ts.LogDefaultPath; |
logdir = strdup(ts.LogDefaultPath); |
| 1351 |
} |
} |
| 1352 |
else { |
else { |
| 1353 |
logdir = ToCharW(ts.LogDirW); |
logdir = ToCharW(ts.LogDirW); |
| 1370 |
ParseStrftimeFileName(full_path, sizeof(full_path)); |
ParseStrftimeFileName(full_path, sizeof(full_path)); |
| 1371 |
ConvertLogname(full_path, sizeof(full_path)); |
ConvertLogname(full_path, sizeof(full_path)); |
| 1372 |
|
|
| 1373 |
|
free(logdir); |
| 1374 |
return ToWcharA(full_path); |
return ToWcharA(full_path); |
| 1375 |
} |
} |
| 1376 |
|
|
|
|
Legend:
| Removed from v.9709 |
|
| changed lines |
| |
Added in v.9714 |
|
|
|