diff options
author | Werner Koch <[email protected]> | 2005-10-05 16:58:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-10-05 16:58:50 +0000 |
commit | bd1df0119c26d14e298d11abdd07ae77e8fb124f (patch) | |
tree | b536179161d11a20fd32df27971f65d952814a88 /g10/sign.c | |
parent | 2005-10-02 Marcus Brinkmann <[email protected]> (diff) | |
download | gnupg-bd1df0119c26d14e298d11abdd07ae77e8fb124f.tar.gz gnupg-bd1df0119c26d14e298d11abdd07ae77e8fb124f.zip |
Renamed g10.c to gpg.c
Filelength fixes for W32.
Diffstat (limited to '')
-rw-r--r-- | g10/sign.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/sign.c b/g10/sign.c index 0e8be714f..fd3c0ab45 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -561,8 +561,10 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname, int ptmode) if ( !iobuf_is_pipe_filename (fname) && *fname ) { off_t tmpsize; - - if( !(tmpsize = iobuf_get_filelength(inp)) ) + int overflow; + + if( !(tmpsize = iobuf_get_filelength(inp, &overflow)) + && !overflow ) log_info (_("WARNING: `%s' is an empty file\n"), fname); /* We can't encode the length of very large files because |