diff -pur plotutils-2.4.1/libplot/g_write.c plotutils-2.4.1-fix/libplot/g_write.c --- plotutils-2.4.1/libplot/g_write.c 2000-05-19 18:10:01.000000000 +0200 +++ plotutils-2.4.1-fix/libplot/g_write.c 2005-07-28 11:59:12.000000000 +0200 @@ -40,7 +40,7 @@ _write_bytes (data, n, c) } #ifdef LIBPLOTTER else if (data->outstream) - data->outstream->write(c, n); + data->outstream->write((const char *)c, n); #endif } diff -pur plotutils-2.4.1/libplot/i_rle.c plotutils-2.4.1-fix/libplot/i_rle.c --- plotutils-2.4.1/libplot/i_rle.c 1999-06-27 18:58:10.000000000 +0200 +++ plotutils-2.4.1-fix/libplot/i_rle.c 2005-07-28 11:59:56.000000000 +0200 @@ -78,7 +78,7 @@ _write_block (rle) else if (rle->outstream) { rle->outstream->put ((unsigned char)(rle->oblen)); - rle->outstream->write (&(rle->oblock[0]), rle->oblen); + rle->outstream->write ((char *) &(rle->oblock[0]), rle->oblen); } #endif diff -pur plotutils-2.4.1/libplot/n_write.c plotutils-2.4.1-fix/libplot/n_write.c --- plotutils-2.4.1/libplot/n_write.c 2000-06-16 07:42:13.000000000 +0200 +++ plotutils-2.4.1-fix/libplot/n_write.c 2005-07-28 12:02:35.000000000 +0200 @@ -208,7 +208,7 @@ P1\n\ linebuf[pos++] = '0'; if (pos >= MAX_PBM_PIXELS_PER_LINE || i == (width - 1)) { - stream->write (linebuf, pos); + stream->write ((char *)linebuf, pos); stream->put ('\n'); pos = 0; @@ -253,7 +253,7 @@ P4\n\ rowbuf[bytecount++] = outbyte; } /* emit row of bytes */ - stream->write (rowbuf, bytecount); + stream->write ((char *)rowbuf, bytecount); } free (rowbuf); @@ -366,7 +366,7 @@ P2\n\ num_pixels++; if (num_pixels >= MAX_PGM_PIXELS_PER_LINE || i == (width - 1)) { - stream->write (linebuf, pos); + stream->write ((char *)linebuf, pos); stream->put ('\n'); num_pixels = 0; @@ -392,7 +392,7 @@ P5\n\ { for (i = 0; i < width; i++) rowbuf[i] = pixmap[j][i].u.rgb[0]; - stream->write (rowbuf, width); + stream->write ((char *)rowbuf, width); } free (rowbuf); } @@ -514,7 +514,7 @@ P3\n\ num_pixels++; if (num_pixels >= MAX_PPM_PIXELS_PER_LINE || i == (width - 1)) { - stream->write (linebuf, pos); + stream->write ((char *)linebuf, pos); stream->put ('\n'); num_pixels = 0; @@ -542,7 +542,7 @@ P6\n\ for (i = 0; i < width; i++) for (component = 0; component < 3; component++) rowbuf[3 * i + component] = pixmap[j][i].u.rgb[component]; - stream->write (rowbuf, 3 * width); + stream->write ((char *)rowbuf, 3 * width); } free (rowbuf); } diff -pur plotutils-2.4.1/libplot/z_write.c plotutils-2.4.1-fix/libplot/z_write.c --- plotutils-2.4.1/libplot/z_write.c 2000-06-20 06:34:42.000000000 +0200 +++ plotutils-2.4.1-fix/libplot/z_write.c 2005-07-28 12:37:07.000000000 +0200 @@ -484,7 +484,7 @@ _our_write_fn (png_struct *png_ptr, png_ ostream *stream; stream = (ostream *)png_get_io_ptr (png_ptr); - stream->write (data, length); + stream->write ((char*)data, length); } static void