diff options
| author | Brian Somers <brian@FreeBSD.org> | 2001-08-20 15:44:17 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2001-08-20 15:44:17 +0000 |
| commit | 778de3590692402f3dd4bccf7b90682ee2b4b6be (patch) | |
| tree | a955fcd9494302a6243d0243d2d3ee52641bae61 /lib/libfetch/ftp.c | |
| parent | 6d3e1426db8907d948801b053806a7bddbec8c43 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
| -rw-r--r-- | lib/libfetch/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 25ea020ec700..93dacdb9efb0 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -744,7 +744,7 @@ _ftp_authenticate(int cd, struct url *url, struct url *purl) if (!pwd || !*pwd) { if ((logname = getlogin()) == 0) logname = FTP_ANONYMOUS_USER; - if ((len = snprintf(pbuf, MAXLOGNAME + 1, "%s@", logname)) == -1) + if ((len = snprintf(pbuf, MAXLOGNAME + 1, "%s@", logname)) < 0) len = 0; else if (len > MAXLOGNAME) len = MAXLOGNAME; |
