public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21823] New: MAXPATHLEN usage in [gcc]/fixincludes
@ 2005-05-30 15:10 ams at gnu dot org
  2005-05-30 15:10 ` [Bug other/21823] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: ams at gnu dot org @ 2005-05-30 15:10 UTC (permalink / raw)
  To: gcc-bugs

The way MAXPATHLEN is used in fixincludes (server.c and fixincl.c) is wrong,
instead of defining a bogus value on platforms that do not have MAXPATHLEN
defined (i.e. GNU) one should try and use getcwd as follows:

  char *dir = getcwd (NULL, 0);

instead of passing a buffer and a size.

This will only work on systems that use the GNU C Library.

-- 
           Summary: MAXPATHLEN usage in [gcc]/fixincludes
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ams at gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-gnu0.3
  GCC host triplet: i686-pc-gnu0.3
GCC target triplet: i686-pc-gnu0.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21823


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-11-15  0:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21823-4@http.gcc.gnu.org/bugzilla/>
2021-11-11 13:07 ` [Bug other/21823] MAXPATHLEN usage in [gcc]/fixincludes egallager at gcc dot gnu.org
2021-11-11 16:51 ` xry111 at mengyan1223 dot wang
2021-11-11 16:52 ` xry111 at mengyan1223 dot wang
2021-11-13 18:34 ` cvs-commit at gcc dot gnu.org
2021-11-13 21:31 ` egallager at gcc dot gnu.org
2021-11-15  0:13 ` egallager at gcc dot gnu.org
2005-05-30 15:10 [Bug c/21823] New: " ams at gnu dot org
2005-05-30 15:10 ` [Bug other/21823] " pinskia at gcc dot gnu dot org
2005-05-30 15:17 ` pinskia at gcc dot gnu dot org
2005-06-19 14:01 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).