From fa977d36ad63fccd2218fb38b44d2fcbe0717225 Mon Sep 17 00:00:00 2001 From: "Christian A. Weber" Date: Tue, 2 Jun 1992 18:08:10 +0000 Subject: memset-Bug behoben --- Examples/EasyExample.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Examples/EasyExample.c b/Examples/EasyExample.c index d01b0d3..c4cca07 100644 --- a/Examples/EasyExample.c +++ b/Examples/EasyExample.c @@ -1,12 +1,12 @@ /* ** -** $Id: EasyExample.c,v 1.1 92/05/28 17:08:31 chris Exp $ -** $Revision: 1.1 $ +** $Id: EasyExample.c,v 21.1 92/05/28 17:09:27 chris Exp $ +** $Revision: 21.1 $ ** ** $Filename: Examples/EasyExample.c $ -** $Author: chris $ +** $Author: Christian A. Weber $ ** $Release: 21.1 $ -** $Date: 92/05/28 17:08:31 $ +** $Date: 92/05/28 17:09:27 $ ** ** A simple ILBM file viewer. To compile with Lattice C 5.x, just ** type 'lmk'. For other compilers you may have to do minor changes. @@ -31,7 +31,7 @@ */ #include -struct Library *IntuitionBase,*IFFBase; +struct Library *IntuitionBase, *IFFBase; struct GfxBase *GfxBase; /**************************************************************************** @@ -83,7 +83,7 @@ void DisplayILBM(char *filename) struct Screen *myscreen; struct NewScreen ns; - memset(ns, 0, sizeof(ns) ); + memset(&ns, 0, sizeof(ns) ); ns.Type = CUSTOMSCREEN | SCREENQUIET | SCREENBEHIND; ns.Width = bmhd->w; -- cgit v1.2.3