(maildir_uniq): Fix memory overwrite.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment