2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Jan 2007 23:13:10 +0000 (23:13 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Jan 2007 23:13:10 +0000 (23:13 +0000)
* bucomm.c (template_in_dir): Fix typo.

binutils/ChangeLog
binutils/bucomm.c

index 679da1c48601019492cd042543f009361eca9904..e112966f0536a19a0435fc6dbedd195324990084 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * bucomm.c (template_in_dir): Fix typo.
+
 2007-01-11  Alan Modra  <amodra@bigpond.net.au>
 
        * embedspu.sh: New file.
index cfc7d4e4e2991b4518e455a88fb578ac59ca6384..2c6a42a506362dc94f0b21c36b3ccef0788a20c7 100644 (file)
@@ -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
 
This page took 0.028231 seconds and 4 git commands to generate.