No really, a workaround.
authorskeezix <skeezix@flotsam-vm.(none)>
Tue, 11 May 2010 03:22:47 +0000 (23:22 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Tue, 11 May 2010 03:22:47 +0000 (23:22 -0400)
lib/pnd_discovery.c

index f40e51b..b6e5f93 100644 (file)
@@ -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)