SECURITY: Fix safeguard against upward traversal in msglog files.
[exim.git] / src / exim_monitor / em_menu.c
index 33b3e0c94ada1dc462026827f5dfae9ca24fa23f..2a70a1831b0ae8f159223344e7d845f0b9c4cf88 100644 (file)
@@ -670,7 +670,7 @@ if (spool_read_header(buffer, TRUE, FALSE) != spool_read_OK)
     sprintf(CS big_buffer, "%s/input/%s", spool_directory, buffer);
     if (Ustat(big_buffer, &statbuf) == 0)
       text_showf(text, "Format error in spool file %s: size=%lu\n", buffer,
-        (ulong)statbuf.st_size);
+        (unsigned long)statbuf.st_size);
     else text_showf(text, "Format error in spool file %s\n", buffer);
     }
   else text_showf(text, "Read error for spool file %s\n", buffer);