diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-01-11 23:13:10 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-01-11 23:13:10 +0000 |
commit | 2946671ecd48495a96958b6a2767031c296aedad (patch) | |
tree | 8441a1fb09dce7c9d1a9a80816a44dc5e862878e /binutils/bucomm.c | |
parent | fd3efd452fd15feb3f70d8783632279a555e3c9f (diff) | |
download | gdb-2946671ecd48495a96958b6a2767031c296aedad.zip gdb-2946671ecd48495a96958b6a2767031c296aedad.tar.gz gdb-2946671ecd48495a96958b6a2767031c296aedad.tar.bz2 |
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 cfc7d4e..2c6a42a 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 |