git.openpandora.org
/
pandora-libraries.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0106d54
)
No really, a workaround.
author
skeezix
<skeezix@flotsam-vm.(none)>
Tue, 11 May 2010 03:22:47 +0000
(23:22 -0400)
committer
skeezix
<skeezix@flotsam-vm.(none)>
Tue, 11 May 2010 03:22:47 +0000
(23:22 -0400)
lib/pnd_discovery.c
patch
|
blob
|
history
diff --git
a/lib/pnd_discovery.c
b/lib/pnd_discovery.c
index
f40e51b
..
b6e5f93
100644
(file)
--- a/
lib/pnd_discovery.c
+++ b/
lib/pnd_discovery.c
@@
-144,7
+144,7
@@
static int pnd_disco_callback ( const char *fpath, const struct stat *sb,
if ( fread ( pngbuffer + 8, 8, 1, f ) == 1 ) {
if ( memcmp ( pngbuffer, pngbuffer + 8, 8 ) == 0 ) {
- pxml_close_pos =
pos
;
+ pxml_close_pos =
ftell ( f ) - 8
;
break;
} // if
fseek ( f, -7, SEEK_CUR ); // seek back 7 (so we're 1 further than we started, since PNG header is 8b)