diff options
author | H.J. Lu <hjl@lucon.org> | 2007-01-11 23:13:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2007-01-11 23:13:10 +0000 |
commit | 5e80a83174787acd404a1e5d3c0261a9e03e6f53 (patch) | |
tree | 78e17c61ed4fdeea91a5b2eccaaf36ead28dd4d1 /binutils/bucomm.c | |
parent | 9d2172ea538f9a70325ce40e9585347d4d8e70a4 (diff) | |
download | binutils-redhat-5e80a83174787acd404a1e5d3c0261a9e03e6f53.tar.gz |
2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
* bucomm.c (template_in_dir): Fix typo.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r-- | binutils/bucomm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |