# HG changeset patch # User Matti Hamalainen # Date 1529922159 -10800 # Node ID 08b0cbadbc4568c97a0835f0be611cdb0e35d18f # Parent 8e3ebeabb2d9cdfe9be2213121f0faaa756015bf Fix dmfputs(), it was writing the end NUL byte of given string. diff -r 8e3ebeabb2d9 -r 08b0cbadbc45 src/dmres.c --- a/src/dmres.c Mon Jun 25 13:22:17 2018 +0300 +++ b/src/dmres.c Mon Jun 25 13:22:39 2018 +0300 @@ -974,7 +974,7 @@ int dmfputs(const char *str, DMResource *fh) { - return dmfwrite(str, strlen(str) + 1, 1, fh) == 1 ? 1 : EOF; + return dmfwrite(str, strlen(str), 1, fh) == 1 ? 1 : EOF; } int dmResourceRef(DMResource *node)