aboutsummaryrefslogtreecommitdiffstats
path: root/g10/sign.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/sign.c6
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