Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/ttpset/ttset.c

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

revision 4084 by doda, Thu Sep 2 12:45:49 2010 UTC revision 4198 by doda, Tue Nov 30 11:49:00 2010 UTC
# Line 1155  void FAR PASCAL ReadIniFile(PCHAR FName, Line 1155  void FAR PASCAL ReadIniFile(PCHAR FName,
1155                    _TRUNCATE);                    _TRUNCATE);
1156    
1157          // Viewlog Editor path          // Viewlog Editor path
1158          GetPrivateProfileString(Section, "ViewlogEditor ", "notepad.exe",          if (GetWindowsDirectory(Temp, sizeof(Temp)) + 13 < sizeof(Temp)) { // "\\notepad.exe"(12) + NUL(1)
1159                                  Temp, sizeof(Temp), FName);                  strncat_s(Temp, sizeof(Temp), "\\notepad.exe", _TRUNCATE);
1160          strncpy_s(ts->ViewlogEditor, sizeof(ts->ViewlogEditor), Temp,          }
1161                    _TRUNCATE);          else {
1162                    Temp[0] = '\0';
1163            }
1164            GetPrivateProfileString(Section, "ViewlogEditor ", Temp,
1165                                    ts->ViewlogEditor, sizeof(ts->ViewlogEditor), FName);
1166    
1167          // Locale for UTF-8          // Locale for UTF-8
1168          GetPrivateProfileString(Section, "Locale ", DEFAULT_LOCALE,          GetPrivateProfileString(Section, "Locale ", DEFAULT_LOCALE,

Legend:
Removed from v.4084  
changed lines
  Added in v.4198

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