Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/filesys_log.cpp
Parent Directory
| Revision Log
| Patch
| 304 |
void ConvertLogname(char *c, int destlen) |
void ConvertLogname(char *c, int destlen) |
| 305 |
{ |
{ |
| 306 |
char buf[MAXPATHLEN], buf2[MAXPATHLEN], *p = c; |
char buf[MAXPATHLEN], buf2[MAXPATHLEN], *p = c; |
| 307 |
|
char tmphost[1024]; |
| 308 |
|
|
| 309 |
memset(buf, 0, sizeof(buf)); |
memset(buf, 0, sizeof(buf)); |
| 310 |
|
|
| 314 |
case 'h': |
case 'h': |
| 315 |
if (cv.Open) { |
if (cv.Open) { |
| 316 |
if (cv.PortType == IdTCPIP) { |
if (cv.PortType == IdTCPIP) { |
| 317 |
strncat_s(buf,sizeof(buf),ts.HostName,_TRUNCATE); |
// ホスト名がIPv6アドレスだと、ファイル名に使用できない文字が入るため、 |
| 318 |
|
// 余計な文字は削除する。 |
| 319 |
|
// (2013.3.9 yutaka) |
| 320 |
|
strncpy_s(tmphost, sizeof(tmphost), ts.HostName, _TRUNCATE); |
| 321 |
|
//strncpy_s(tmphost, sizeof(tmphost), "2001:0db8:bd05:01d2:288a:1fc0:0001:10ee", _TRUNCATE); |
| 322 |
|
deleteInvalidFileNameChar(tmphost); |
| 323 |
|
strncat_s(buf,sizeof(buf), tmphost, _TRUNCATE); |
| 324 |
} |
} |
| 325 |
else if (cv.PortType == IdSerial) { |
else if (cv.PortType == IdSerial) { |
| 326 |
strncpy_s(buf2,sizeof(buf2),buf,_TRUNCATE); |
strncpy_s(buf2,sizeof(buf2),buf,_TRUNCATE); |
|
|
Legend:
| Removed from v.4786 |
|
| changed lines |
| |
Added in v.5139 |
|
|
| |