1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Renamed g10.c to gpg.c

Filelength fixes for W32.
This commit is contained in:
Werner Koch 2005-10-05 16:58:50 +00:00
parent 98dc48464f
commit bd1df0119c
36 changed files with 2748 additions and 2547 deletions

View file

@ -253,6 +253,7 @@ is_file_compressed( const char *s, int *ret_rc )
IOBUF a;
byte buf[4];
int i, rc = 0;
int overflow;
struct magic_compress_s {
size_t len;
@ -272,7 +273,7 @@ is_file_compressed( const char *s, int *ret_rc )
return 0;
}
if ( iobuf_get_filelength( a ) < 4 ) {
if ( iobuf_get_filelength( a, &overflow ) < 4 && !overflow) {
*ret_rc = 0;
goto leave;
}