> p[-1] = '\0';

What makes you think this is a compilation error?  Do you have a
compiler error message for us?  I suspect that you're just worried about
indexing an "array" with -1.  "p" isn't an array.  It's previously been
assigned by:

      p = name + strlen (name);

So -1 is only an invalid index if strlen(name) == 0.  I was going to say
"surely that never happens?" but I do see calls, albeit #ifdef AMIGA,
which do pass an empty string to find_directory.
-------------------------------------
Martin's Outlook, BlueArc Engineering


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to