diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-30 21:57:07 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-30 21:57:07 +0000 |
commit | e83dc39d6853ec31919ee54223fe1196b8d7de1d (patch) | |
tree | 68a6f2afd365b73ea6690c178bdb8d2d33c76c51 /driver.c | |
parent | 0a9f1280ef062b8f1aeef1b99cd7738f79d5d1ca (diff) | |
download | fetchmail-e83dc39d6853ec31919ee54223fe1196b8d7de1d.tar.gz fetchmail-e83dc39d6853ec31919ee54223fe1196b8d7de1d.tar.bz2 fetchmail-e83dc39d6853ec31919ee54223fe1196b8d7de1d.zip |
More robust message size queries
svn path=/trunk/; revision=1447
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1642,7 +1642,11 @@ const struct method *proto; /* protocol method table */ */ if (proto->getsizes) { + int i; + msgsizes = (int *)alloca(sizeof(int) * count); + for (i = 0; i < count; i++) + msgsizes[i] = -1; ok = (proto->getsizes)(sock, count, msgsizes); if (ok != 0) |