This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

L_tmpnam in stdio_lim.h


Hi,  

I changed my environment to GNU Libc 2.0.97 from 2.0.94.  I've found
imake core dumps when I set TMPDIR=/var/tmp.

This is because imake calls tmpnam with NULL argument and doesn't
check its return value.

But if it L_tmpnam is more than or equal to 20, imake wouldn't dump
core... (sizeof ("/var/tmp/fileXXXXXX") == 20). 

Is there any reason why L_tmpnam is 19?

Thanks, 
-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]