From 6a6285becbc42fcb56b2ab745b74c668937f0ed1 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 10 Jun 2008 10:46:09 +0000 Subject: [PATCH] fixed file length computation --- installer/installer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/installer.c b/installer/installer.c index dc6f36a..de030ef 100644 --- a/installer/installer.c +++ b/installer/installer.c @@ -121,9 +121,9 @@ static char* concatPaths(const char*base, const char*add) static void handleTemplateFile(const char*filename) { FILE*fi = fopen(filename, "rb"); - fseek(fi, SEEK_END, 0); + fseek(fi, 0, SEEK_END); int len = ftell(fi); - fseek(fi, SEEK_SET, 0); + fseek(fi, 0, SEEK_SET); char*file = malloc(len); fread(file, len, 1, fi); fclose(fi); -- 1.7.10.4