From: kramm Date: Tue, 10 Jun 2008 10:46:09 +0000 (+0000) Subject: fixed file length computation X-Git-Tag: buttons-working~132 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=6a6285becbc42fcb56b2ab745b74c668937f0ed1 fixed file length computation --- 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);