git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb8b82
)
fixed file length computation
author
kramm
<kramm>
Tue, 10 Jun 2008 10:46:09 +0000
(10:46 +0000)
committer
kramm
<kramm>
Tue, 10 Jun 2008 10:46:09 +0000
(10:46 +0000)
installer/installer.c
patch
|
blob
|
history
diff --git
a/installer/installer.c
b/installer/installer.c
index
dc6f36a
..
de030ef
100644
(file)
--- 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);