Commit 55dc1999 55dc199944982d6bacebc096b604b9cdcad4152c by Sergey Poznyakoff

(maildir_uniq): Fix memory overwrite.

1 parent c2403102
......@@ -314,7 +314,7 @@ maildir_uniq (struct _amd_data *amd, int fd)
FMT ("%lu", tv.tv_sec);
COPY (".");
if (read_random (&n, 32))
if (read_random (&n, sizeof (unsigned long))) /* FIXME: 32 bits */
PFX ('R', "%lX", n);
if (fd > 0 && fstat (fd, &st) == 0)
......