diff options
Diffstat (limited to 'gcc/diagnostic.c')
| -rw-r--r-- | gcc/diagnostic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 0705c63..c25c0ec 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -366,7 +366,7 @@ trim_filename (const char *name) p++, q++; /* Now go backwards until the previous directory separator. */ - while (p > name && IS_DIR_SEPARATOR (p[-1])) + while (p > name && !IS_DIR_SEPARATOR (p[-1])) p--; return p; |
