diff options
Diffstat (limited to 'g10/sign.c')
-rw-r--r-- | g10/sign.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/g10/sign.c b/g10/sign.c index eaf9d9ed5..6fa6f46da 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -749,14 +749,13 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname, int ptmode) if (!opt.no_literal) pt=setup_plaintext_name(fname,inp); - /* try to calculate the length of the data */ + /* Try to calculate the length of the data. */ if ( !iobuf_is_pipe_filename (fname) && *fname ) { - off_t tmpsize; - int overflow; + uint64_t tmpsize; - if( !(tmpsize = iobuf_get_filelength(inp, &overflow)) - && !overflow && opt.verbose) + tmpsize = iobuf_get_filelength (inp); + if (!tmpsize && opt.verbose) log_info (_("WARNING: '%s' is an empty file\n"), fname); /* We can't encode the length of very large files because |