diff options
-rw-r--r-- | qmail-pop3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qmail-pop3d.c b/qmail-pop3d.c index 0ca4f9c..2228a4d 100644 --- a/qmail-pop3d.c +++ b/qmail-pop3d.c @@ -148,13 +148,13 @@ void getlist() void pop3_stat(arg) char *arg; { - int i; + int i, j=0; unsigned long total; total = 0; - for (i = 0;i < numm;++i) if (!m[i].flagdeleted) total += m[i].size; + for (i = 0;i < numm;++i) if (!m[i].flagdeleted) { total += m[i].size; j++; } puts("+OK "); - put(strnum,fmt_uint(strnum,numm)); + put(strnum,fmt_uint(strnum,j)); puts(" "); put(strnum,fmt_ulong(strnum,total)); puts("\r\n"); |