summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorChristian A. Weber <chris@gna.ch>1992-06-02 18:08:10 +0000
committerChristian A. Weber <chris@gna.ch>1992-06-02 18:08:10 +0000
commitfa977d36ad63fccd2218fb38b44d2fcbe0717225 (patch)
tree5c522b465336d39bc3fed0902fcfdf9504a098f6 /Examples
parente4edefba44d34b937ac261fae1312d7d0c884199 (diff)
downloadiff-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.c12
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;