svnno****@sourc*****
svnno****@sourc*****
2016年 11月 1日 (火) 15:01:23 JST
Revision: 6523 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6523 Author: doda Date: 2016-11-01 15:01:23 +0900 (Tue, 01 Nov 2016) Log Message: ----------- 変数名を判り易い物に変更 Modified Paths: -------------- trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c -------------- next part -------------- Modified: trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c =================================================================== --- trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c 2016-11-01 06:01:21 UTC (rev 6522) +++ trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c 2016-11-01 06:01:23 UTC (rev 6523) @@ -329,32 +329,33 @@ // TTXReadIniFile, TTXWriteIniFile -- \x90ݒ\xE8\x83t\x83@\x83C\x83\x8B\x82̓ǂݏ\x91\x82\xAB // void ReadINI(PCHAR fn, PTTSet ts) { - char buff[OutBuffSize]; + char sect[OutBuffSize]; char *p; + // DLL \x83t\x83@\x83C\x83\x8B\x96\xBC\x82\xA9\x82\xE7\x81AINI \x82̃Z\x83N\x83V\x83\x87\x83\x93\x96\xBC\x82\xF0\x8C\x88\x82߂\xE9 if (fn[0] == '\\' || fn[0] == '/' || (fn[0] != 0 && fn[1] == ':')) { - strncpy_s(buff, sizeof(buff), fn, _TRUNCATE); + strncpy_s(sect, sizeof(sect), fn, _TRUNCATE); } else { - GetModuleFileName(NULL, buff, sizeof(buff)); - p = strrchr(buff, '\\'); + GetModuleFileName(NULL, sect, sizeof(sect)); + p = strrchr(sect, '\\'); if (!p) { return; } - strncpy_s(p+1, sizeof(buff) - ((p+1)-buff), fn, _TRUNCATE); + strncpy_s(p+1, sizeof(sect) - ((p+1)-sect), fn, _TRUNCATE); } - GetPrivateProfileString(SECTION, "Command", "", pvar->orgCommand, sizeof(pvar->orgCommand), buff); + GetPrivateProfileString(SECTION, "Command", "", pvar->orgCommand, sizeof(pvar->orgCommand), sect); strncpy_s(pvar->command, sizeof(pvar->command), pvar->orgCommand, _TRUNCATE); UnEscapeStr(pvar->command); pvar->cmdLen = (int)strlen(pvar->command); - pvar->interval = GetPrivateProfileInt(SECTION, "Interval", DEFAULT_INTERVAL, buff); + pvar->interval = GetPrivateProfileInt(SECTION, "Interval", DEFAULT_INTERVAL, sect); if (pvar->interval < MINIMUM_INTERVAL) { pvar->interval = MINIMUM_INTERVAL; } - pvar->enable = GetOnOff(SECTION, "Enable", buff, FALSE); + pvar->enable = GetOnOff(SECTION, "Enable", sect, FALSE); } static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {