summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-27 14:06:18 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-06-27 14:06:18 +0300
commit12330bfe5b604a77c8aa27dff8a525cc751877ed (patch)
treeda5e6a892fb9d763c65bb9d428921b2bfb7332ad /hwpfilter
parent1ef868489e324c66ef54549a12d91ebd39dd7488 (diff)
Fix Windows build
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpreader.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index 8fe47730a9e9..8bcef10460df 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -543,7 +543,8 @@ void HwpReader::makeDrawMiscStyle( HWPDrawingObject *hdo )
close(fd);
}
#ifdef _WIN32
- for(int j = 0 ; j < (int)strlen( dirname ) ; j++)
+ int j;
+ for(j = 0 ; j < (int)strlen( dirname ) ; j++)
{
if( dirname[j] == '\\' ) buf[j] = '/';
else buf[j] = dirname[j];