Fixed coding error. strlen() returns size_t causing a size_t sized value pushed onto stack instead of long. On x64 builds, size_t != long. Caught via compiler warning in x64 build.

This commit is contained in:
Bart House
2017-09-02 11:29:23 -07:00
committed by Pasi Kallinen
parent ee61f1b730
commit 878a18388c

View File

@@ -506,7 +506,7 @@ long slen, dir_size, flen;
(long) DLB_VERS, /* version of dlb file */
(long) nfiles + 1, /* # of entries (includes directory) */
/* string length + room for nulls */
(long) slen + strlen(DLB_DIRECTORY) + nfiles + 1,
(long) slen + (long) strlen(DLB_DIRECTORY) + nfiles + 1,
(long) dir_size, /* start of first file */
(long) flen + dir_size); /* total file size */
Write(out, buf, strlen(buf));