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:
parent
98dc48464f
commit
bd1df0119c
36 changed files with 2748 additions and 2547 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue