Commit 76facf53 76facf5396e0503f34b04eb9b5a03c54df3c3d8f by Sergey Poznyakoff

(notify_user): Bugfix: do not pass size_t instead of off_t.

1 parent 2066965a
......@@ -434,7 +434,8 @@ notify_user (const char *user, const char *device, const char *path, off_t offse
message_t msg;
stream_t stream = NULL;
int status;
size_t size, count, n;
off_t size;
size_t count, n;
change_user (user);
if ((fp = fopen (device, "w")) == NULL)
......@@ -467,7 +468,7 @@ notify_user (const char *user, const char *device, const char *path, off_t offse
return;
}
if ((status = stream_size (stream, (off_t *) &size)))
if ((status = stream_size (stream, size)))
{
syslog (LOG_ERR, _("can't get stream size (mailbox %s): %s"),
path, mu_strerror (status));
......