diff --git a/src/modules/Image/encodings/pnm.c b/src/modules/Image/encodings/pnm.c index 412a0a98e4a86455185dddf67d8077e53951fa92..0cafbf160853ff4131d37deac372b7efae83d142 100644 --- a/src/modules/Image/encodings/pnm.c +++ b/src/modules/Image/encodings/pnm.c @@ -1,9 +1,9 @@ -/* $Id: pnm.c,v 1.6 1998/01/06 21:39:30 mirar Exp $ */ +/* $Id: pnm.c,v 1.7 1998/01/08 20:51:39 mirar Exp $ */ /* **! module Image **! note -**! $Id: pnm.c,v 1.6 1998/01/06 21:39:30 mirar Exp $ +**! $Id: pnm.c,v 1.7 1998/01/08 20:51:39 mirar Exp $ **! submodule PNM **! **! This submodule keeps the PNM encode/decode capabilities @@ -49,7 +49,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: pnm.c,v 1.6 1998/01/06 21:39:30 mirar Exp $"); +RCSID("$Id: pnm.c,v 1.7 1998/01/08 20:51:39 mirar Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -278,7 +278,7 @@ void img_pnm_encode_P6(INT32 args) unsigned char *c; int n=img->xsize*img->ysize; rgb_group *s=img->img; - c=(unsigned char*)(b=begin_shared_string(n*3)); + c=(unsigned char*)((b=begin_shared_string(n*3))->str); while (n--) { *(c++)=s->r; diff --git a/src/modules/Image/image.h b/src/modules/Image/image.h index 2aaa53f6e76eeb5b4a9352d5cfdbab7ad39f8463..8432ab1ea374043e94bd8a3ea97d67c819bc71a2 100644 --- a/src/modules/Image/image.h +++ b/src/modules/Image/image.h @@ -1,7 +1,7 @@ /* **! module Image **! note -**! $Id: image.h,v 1.16 1998/01/06 21:39:28 mirar Exp $ +**! $Id: image.h,v 1.17 1998/01/08 20:51:38 mirar Exp $ */ #ifdef PIKE_IMAGE_IMAGE_H @@ -22,7 +22,7 @@ typedef struct { COLORTYPE r,g,b; - COLORTYPE __padding_dont_use__; +/* COLORTYPE __padding_dont_use__;*/ } rgb_group; typedef struct