From: ulrich AT lab1 DOT psy DOT univie DOT ac DOT at Subject: Problem with stat() and long filenames To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Fri, 11 Mar 1994 10:07:47 +0100 (MET) I am using DJGPP 1.11m3 and found the following bug: stat() causes a big crash when called with relative filenames longer then (90 - length of ), because there is a stack buffer p[90] used. The buffer p[] should probably changed to: char *p = (char *) alloca (strlen(path) + MAXPATHLEN);