From 307ff1df129bd324640f7c6361c2f78423dc88e7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sun, 25 Jun 2000 16:30:27 +0000 Subject: [PATCH] Advance past both parts of dos based : filepath prefix. --- binutils/ChangeLog | 7 +++++++ binutils/ar.c | 4 ++-- binutils/bucomm.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 13ec867ecfb..1cb0b717450 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2000-06-25 Alexander Aganichev + + * ar.c (normalize): Advance past both characters in a DOS based + : filepath prefix. + (main): Likewise. + * bucomm.c (make_tempname): Likewise. + 2000-06-24 Nick Clifton * objdump.c (usage): Fix description of --stabs switch. diff --git a/binutils/ar.c b/binutils/ar.c index 650092f449c..c8179d469b3 100644 --- a/binutils/ar.c +++ b/binutils/ar.c @@ -310,7 +310,7 @@ normalize (file, abfd) if (filename == NULL || (bslash != NULL && bslash > filename)) filename = bslash; if (filename == NULL && file[0] != '\0' && file[1] == ':') - filename = file + 1; + filename = file + 2; } #endif if (filename != (char *) NULL) @@ -395,7 +395,7 @@ main (argc, argv) if (temp == NULL || (bslash != NULL && bslash > temp)) temp = bslash; if (temp == NULL && program_name[0] != '\0' && program_name[1] == ':') - temp = program_name + 1; + temp = program_name + 2; } #endif if (temp == NULL) diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 86c327fd433..a40a599ee35 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -222,7 +222,7 @@ make_tempname (filename) if (slash == NULL || (bslash != NULL && bslash > slash)) slash = bslash; if (slash == NULL && filename[0] != '\0' && filename[1] == ':') - slash = filename + 1; + slash = filename + 2; } #endif -- 2.30.2