delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/11/04:57:11

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 <current working directory>), because
there is a stack buffer p[90] used.

The buffer p[] should probably changed to:

	char *p = (char *) alloca (strlen(path) + MAXPATHLEN);


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019