Index: ext/libicpf/src/libicpf/cfg_ini.cpp =================================================================== diff -u -N -r9934e5dc9613bf3246f7d4955d4dd7c07f0dd555 -re31dc31ccf2010abee81ddc399d65b57e4803278 --- ext/libicpf/src/libicpf/cfg_ini.cpp (.../cfg_ini.cpp) (revision 9934e5dc9613bf3246f7d4955d4dd7c07f0dd555) +++ ext/libicpf/src/libicpf/cfg_ini.cpp (.../cfg_ini.cpp) (revision e31dc31ccf2010abee81ddc399d65b57e4803278) @@ -1,21 +1,21 @@ -/*************************************************************************** -* Copyright (C) 2001-2008 by J�zef Starosczyk * -* ixen@copyhandler.com * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU Library General Public License * -* (version 2) as published by the Free Software Foundation; * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -* GNU General Public License for more details. * -* * -* You should have received a copy of the GNU Library General Public * -* License along with this program; if not, write to the * -* Free Software Foundation, Inc., * -* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * -***************************************************************************/ +/*************************************************************************** +* Copyright (C) 2001-2008 by J�zef Starosczyk * +* ixen@copyhandler.com * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU Library General Public License * +* (version 2) as published by the Free Software Foundation; * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU Library General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., * +* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +***************************************************************************/ #include "cfg_ini.h" #include "exception.h" #include @@ -150,12 +150,12 @@ // there is a line [pszLast, pszCurrent) stLineLen = pszCurrent - pszLast; if(stLineLen) - { - if(stLineLen >= INI_BUFFER) - stLineLen = INI_BUFFER - 1; - _tcsncpy(pszLine, pszLast, stLineLen); - pszLine[stLineLen] = _t('\0'); - + { + if(stLineLen >= INI_BUFFER) + stLineLen = INI_BUFFER - 1; + _tcsncpy(pszLine, pszLast, stLineLen); + pszLine[stLineLen] = _t('\0'); + if(bFirstLine) { bFirstLine = false; @@ -165,13 +165,13 @@ else parse_line(pszLine); } - else - { - // process the line + else + { + // process the line parse_line(pszLine); - } - } - pszLast = pszCurrent + 1; + } + } + pszLast = pszCurrent + 1; } ++pszCurrent; } @@ -180,16 +180,16 @@ // there is a line [pszLast, pszCurrent) stLineLen = pszCurrent - pszLast; if(stLineLen) - { - if(stLineLen >= INI_BUFFER) - stLineLen = INI_BUFFER - 1; - - _tcsncpy(pszLine, pszLast, stLineLen); - pszLine[stLineLen] = _t('\0'); - - // process the line + { + if(stLineLen >= INI_BUFFER) + stLineLen = INI_BUFFER - 1; + + _tcsncpy(pszLine, pszLast, stLineLen); + pszLine[stLineLen] = _t('\0'); + + // process the line parse_line(pszLine); - } + } } delete [] pszLine;