From: Guillermo J. Rozas Date: Tue, 14 Feb 1989 20:41:32 +0000 (+0000) Subject: Fix uninitialized variable bug. X-Git-Tag: 20090517-FFI~12274 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=d0d4ad65b13a5c11578f8d553ca6cd567f7e51c8;p=mit-scheme.git Fix uninitialized variable bug. --- diff --git a/v7/src/microcode/ppband.c b/v7/src/microcode/ppband.c index 9e22e9552..dc4390f7b 100644 --- a/v7/src/microcode/ppband.c +++ b/v7/src/microcode/ppband.c @@ -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); diff --git a/v8/src/microcode/ppband.c b/v8/src/microcode/ppband.c index f7b8231b4..0f7ac9670 100644 --- a/v8/src/microcode/ppband.c +++ b/v8/src/microcode/ppband.c @@ -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);