Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/filesys_log.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4786 by maya, Thu Dec 29 12:29:38 2011 UTC revision 5139 by yutakapon, Sat Mar 9 14:53:41 2013 UTC
# Line 304  void FreeFileVar(PFileVar *fv) Line 304  void FreeFileVar(PFileVar *fv)
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    
# Line 313  void ConvertLogname(char *c, int destlen Line 314  void ConvertLogname(char *c, int destlen
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26