Thread: So
View Single Post
Old 07-24-2005, 04:36 PM   #12
DrMcCoy
Senior Member
 
DrMcCoy's Avatar
 
Join Date: Sep 2003
Location: Braunschweig, Germany
Posts: 1,944
Current Game: nethack
10 year veteran! Forum Veteran 
Quote:
Originally posted by Joshi
Again, dull
...Have you actually seen the format specifications?

Quote:
Originally posted by Joshi
Which is just totally illogical.
...Nope, it was quite logical, while compiling that lib, autoconf decided I've need support for large files and added "#define _FILE_OFFSET_BITS 64" into the config.h, which made sys/types.h to typedef off_t as a long long. My program that used that lib didn't define _FILE_OFFSET_BITS, therefore sys/types.h typedefed off_t as a long. Then I had a function inside that lib taking a off_t as the third argument, which messed up the stack when called... Not quite plainly to see or notice, but logical nonetheless...




if(!strcmp(nick, "DrMcCoy") && !strcmp(avatar, "Spock")) return E_INSANE;
DrMcCoy is offline   you may: quote & reply,