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) ...@@ -314,7 +314,7 @@ maildir_uniq (struct _amd_data *amd, int fd)
314 FMT ("%lu", tv.tv_sec); 314 FMT ("%lu", tv.tv_sec);
315 COPY ("."); 315 COPY (".");
316 316
317 if (read_random (&n, 32)) 317 if (read_random (&n, sizeof (unsigned long))) /* FIXME: 32 bits */
318 PFX ('R', "%lX", n); 318 PFX ('R', "%lX", n);
319 319
320 if (fd > 0 && fstat (fd, &st) == 0) 320 if (fd > 0 && fstat (fd, &st) == 0)
......