Patch from Marc Balmer <marc@msys.ch>:
Use strlen, not sizeof, here. Fixes a segfault on Debian squeeze 64 bit
and most probably other systems, too.
/* unique file name instead. */
char tmpnam_buf[L_tmpnam + 1];
- results = (char *)malloc(sizeof(_DTDTSMMTEMPDIR) +
- sizeof(_DTDTSMMTEMPFILE) +
+ results = (char *)malloc(strlen(_DTDTSMMTEMPDIR) +
+ strlen(_DTDTSMMTEMPFILE) +
L_tmpnam + 3);
tmpnam(tmpnam_buf);
sprintf(results, "%s/%s%s", _DTDTSMMTEMPDIR, _DTDTSMMTEMPFILE,