diff options
author | Christian A. Weber <chris@gna.ch> | 1992-06-02 18:08:10 +0000 |
---|---|---|
committer | Christian A. Weber <chris@gna.ch> | 1992-06-02 18:08:10 +0000 |
commit | fa977d36ad63fccd2218fb38b44d2fcbe0717225 (patch) | |
tree | 5c522b465336d39bc3fed0902fcfdf9504a098f6 /Examples | |
parent | e4edefba44d34b937ac261fae1312d7d0c884199 (diff) | |
download | iff-library-fa977d36ad63fccd2218fb38b44d2fcbe0717225.tar.gz iff-library-fa977d36ad63fccd2218fb38b44d2fcbe0717225.tar.bz2 iff-library-fa977d36ad63fccd2218fb38b44d2fcbe0717225.zip |
memset-Bug behoben
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/EasyExample.c | 12 |
1 files 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 <libraries/iff.h> -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; |