Fix uninitialized variable bug.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 14 Feb 1989 20:41:32 +0000 (20:41 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 14 Feb 1989 20:41:32 +0000 (20:41 +0000)
v7/src/microcode/ppband.c
v8/src/microcode/ppband.c

index 9e22e955219f4e222ee416d559535b2707332d5c..dc4390f7b4ff4bfd60209060dd8692316b534c48 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/ppband.c,v 9.32 1988/02/12 16:49:27 jinx Rel $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/ppband.c,v 9.33 1989/02/14 20:41:32 jinx Rel $
  *
  * Dumps Scheme FASL in user-readable form .
  */
@@ -190,6 +190,7 @@ void
 Display(Location, Type, The_Datum)
      long Location, Type, The_Datum;
 {
+  char string_buf[100];
   char *the_string;
   long Points_To;
 
@@ -270,8 +271,8 @@ Display(Location, Type, The_Datum)
       }
       else
       {
-       sprintf(&the_string[0], "0x%02lx ", Type);
-       POINTER(&the_string[0]);
+       sprintf(&string_buf[0], "0x%02lx ", Type);
+       POINTER(&string_buf[0]);
       }
   }
   PRINT_OBJECT(the_string, Points_To);
index f7b8231b4e03612e0673209ce771aeb59a481292..0f7ac967042db2dc16ed44e1daab911960a97057 100644 (file)
@@ -30,7 +30,7 @@ Technology nor of any adaptation thereof in any advertising,
 promotional, or sales literature without prior written consent from
 MIT in each case. */
 
-/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/ppband.c,v 9.32 1988/02/12 16:49:27 jinx Rel $
+/* $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/ppband.c,v 9.33 1989/02/14 20:41:32 jinx Rel $
  *
  * Dumps Scheme FASL in user-readable form .
  */
@@ -190,6 +190,7 @@ void
 Display(Location, Type, The_Datum)
      long Location, Type, The_Datum;
 {
+  char string_buf[100];
   char *the_string;
   long Points_To;
 
@@ -270,8 +271,8 @@ Display(Location, Type, The_Datum)
       }
       else
       {
-       sprintf(&the_string[0], "0x%02lx ", Type);
-       POINTER(&the_string[0]);
+       sprintf(&string_buf[0], "0x%02lx ", Type);
+       POINTER(&string_buf[0]);
       }
   }
   PRINT_OBJECT(the_string, Points_To);