* dlltool.c (prefix_encode): Use a fixed length for alpha.
authorChristopher Faylor <me+cygwin@cgf.cx>
Sat, 5 Jul 2003 13:49:50 +0000 (13:49 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sat, 5 Jul 2003 13:49:50 +0000 (13:49 +0000)
binutils/ChangeLog
binutils/dlltool.c

index 26178750ec48eee0553fe8c9cbe6dbcc5f011784..1783286bdb6fe9072d51e13ca2ebf5d0591f868d 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-05  Christopher Faylor  <cgf@redhat.com>
+
+       * dlltool.c (prefix_encode): Use a fixed length for alpha.
+
 2003-07-04  Christopher Faylor  <cgf@redhat.com>
 
        * dlltool.c (prefix_encode): New function.  Encode temp file prefix
index 544602b028cc533bc188350d53a5313f03a211df..ffbcd2861cccd61d00ed67e548d73e842bc8ff3b 100644 (file)
@@ -753,7 +753,7 @@ static void inform
 static char *
 prefix_encode PARAMS ((char *start, unsigned code))
 {
-  static char alpha[] = "abcdefghijklmnopqrstuvwxyz";
+  static char alpha[26] = "abcdefghijklmnopqrstuvwxyz";
   static char buf[32];
   char *p;
   strcpy (buf, start);