diff options
Diffstat (limited to 'usr.bin/mail/fio.c')
| -rw-r--r-- | usr.bin/mail/fio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mail/fio.c b/usr.bin/mail/fio.c index 0fb86b33e7e6..0a017ce5e1b9 100644 --- a/usr.bin/mail/fio.c +++ b/usr.bin/mail/fio.c @@ -419,7 +419,7 @@ getfold(name, namelen) else copylen = snprintf(name, namelen, "%s/%s", homedir ? homedir : ".", folder); - return (copylen >= namelen ? (-1) : (0)); + return (copylen < 0 || copylen >= namelen ? (-1) : (0)); } /* |
