From: H.J. Lu Date: Thu, 11 Jan 2007 23:13:10 +0000 (+0000) Subject: 2007-01-11 H.J. Lu X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=2946671ecd48495a96958b6a2767031c296aedad;p=deliverable%2Fbinutils-gdb.git 2007-01-11 H.J. Lu * bucomm.c (template_in_dir): Fix typo. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 679da1c486..e112966f05 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2007-01-11 H.J. Lu + + * bucomm.c (template_in_dir): Fix typo. + 2007-01-11 Alan Modra * embedspu.sh: New file. diff --git a/binutils/bucomm.c b/binutils/bucomm.c index cfc7d4e4e2..2c6a42a506 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -394,7 +394,7 @@ static char * template_in_dir (const char *path) { #define template "stXXXXXX" - char *slash = strrchr (path, '/'); + const char *slash = strrchr (path, '/'); char *tmpname; size_t len; @@ -406,7 +406,7 @@ template_in_dir (const char *path) if (slash == NULL || (bslash != NULL && bslash > slash)) slash = bslash; if (slash == NULL && path[0] != '\0' && path[1] == ':') - slash = filename + 1; + slash = path + 1; } #endif