Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

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

revision 5839 by yutakapon, Wed Apr 29 16:23:18 2015 UTC revision 5849 by yutakapon, Tue May 5 18:08:23 2015 UTC
# Line 475  static void read_ssh_options(PTInstVar p Line 475  static void read_ssh_options(PTInstVar p
475    
476          READ_STD_STRING_OPTION(X11Display);          READ_STD_STRING_OPTION(X11Display);
477    
478          settings->UpdateHostkeys = read_BOOL_option(fileName, "UpdateHostkeys", FALSE);          settings->UpdateHostkeys = GetPrivateProfileInt("TTSSH", "UpdateHostkeys", 0, fileName);
479    
480          clear_local_settings(pvar);          clear_local_settings(pvar);
481  }  }
# Line 583  static void write_ssh_options(PTInstVar Line 583  static void write_ssh_options(PTInstVar
583    
584          WritePrivateProfileString("TTSSH", "X11Display", settings->X11Display, fileName);          WritePrivateProfileString("TTSSH", "X11Display", settings->X11Display, fileName);
585    
586          WritePrivateProfileString("TTSSH", "UpdateHostkeys",          _snprintf_s(buf, sizeof(buf), _TRUNCATE,
587                  settings->UpdateHostkeys ? "1" : "0", fileName);                  "%d", settings->UpdateHostkeys);
588            WritePrivateProfileString("TTSSH", "UpdateHostkeys", buf, fileName);
589  }  }
590    
591    

Legend:
Removed from v.5839  
changed lines
  Added in v.5849

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