[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [bug #18517] Compilation error in find_directory() in dir.c on Windo
From: |
Martin Dorey |
Subject: |
RE: [bug #18517] Compilation error in find_directory() in dir.c on Windows platforms |
Date: |
Wed, 13 Dec 2006 08:58:17 -0800 |
> 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