--- ray/src/ot/writeoct.c 1990/12/12 22:46:35 1.4 +++ ray/src/ot/writeoct.c 1991/10/28 12:21:52 1.6 @@ -18,7 +18,9 @@ static char SCCSid[] = "$SunId$ LBL"; #include "otypes.h" +static int putint(), putstr(), puttree(), putobj(); + writeoct(store, scene, ofn) /* write octree structures to stdout */ int store; CUBE *scene; @@ -27,7 +29,7 @@ char *ofn[]; char sbuf[64]; register int i; /* write format number */ - putint((long)OCTMAGIC, 2); + putint((long)(OCTMAGIC+sizeof(OBJECT)), 2); if (!(store & IO_BOUNDS)) return;