git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimized lib/pdf/Makefile.in
[swftools.git]
/
lib
/
os.c
diff --git
a/lib/os.c
b/lib/os.c
index
383473e
..
fddaee9
100755
(executable)
--- a/
lib/os.c
+++ b/
lib/os.c
@@
-210,7
+210,7
@@
char* mktempname(char*ptr) {
// used to be mktemp. This does remove the warnings, but
// It's not exactly an improvement.
#ifdef HAVE_LRAND48
// used to be mktemp. This does remove the warnings, but
// It's not exactly an improvement.
#ifdef HAVE_LRAND48
- sprintf(ptr, "%s%s%08x%08x",dir,sep,lrand48(),lrand48());
+ sprintf(ptr, "%s%s%08x%08x",dir,sep,(unsigned int)lrand48(),(unsigned int)lrand48());
#else
# ifdef HAVE_RAND
sprintf(ptr, "%s%s%08x%08x",dir,sep,rand(),rand());
#else
# ifdef HAVE_RAND
sprintf(ptr, "%s%s%08x%08x",dir,sep,rand(),rand());
@@
-269,7
+269,8
@@
void memfile_close(memfile_t*file)
#else
free(file->data);
#endif
#else
free(file->data);
#endif
- file->data = file->len = 0;
+ file->data = 0;
+ file->len = 0;
free(file);
}
free(file);
}