pkgsrc/devel/ncc/patches/patch-ad
wiz 4bc80e7c50 Initial import of wip/ncc-2.8, last updated by Marko Schütz.
ncc is a compiler that produces program analysis information. ncc
is a decent replacement of cflow and cscope able to analyze any
program using the gcc compiler. The program also includes a
graphical call-graph navigator and source browser which is extremely
practical for hacking and comprehending large projects.
2008-10-20 07:52:26 +00:00

13 lines
334 B
Text

$NetBSD: patch-ad,v 1.1.1.1 2008/10/20 07:52:26 wiz Exp $
--- preproc.C.orig 2008-10-11 11:18:56.000000000 -0400
+++ preproc.C
@@ -35,7 +35,7 @@ static bool isobj (char *f)
static char *objfile (char *f)
{
char *r = strdup (f);
- char *p = rindex (r, '.');
+ char *p = strrchr (r, '.');
if (p) strcpy (p, ".o");
return r;
}