X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctsim%2Fimagefile.cpp;h=343470a6ecbdb9aaea3c09b1c2101e832b50b592;hb=077442b636ce4e84ab255577cc9f2cfd5c07a998;hp=a98f3e16fdf44b73ee025127ba2d2f6606d0cb2c;hpb=1a8b1506dfe6144ad69257e4e6404546890ca963;p=ctsim.git diff --git a/libctsim/imagefile.cpp b/libctsim/imagefile.cpp index a98f3e1..343470a 100644 --- a/libctsim/imagefile.cpp +++ b/libctsim/imagefile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: imagefile.cpp,v 1.13 2000/11/22 06:43:21 kevin Exp $ +** $Id: imagefile.cpp,v 1.15 2000/11/22 16:39:59 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -318,7 +318,7 @@ ImageFile::writeImagePGM (const char *outfile, int nxcell, int nycell, double de } for (int ir = 0; ir < nycell; ir++) { for (int ic = 0; ic < nx * nxcell; ic++) - fprintf(fp, "%c", rowp[ic]); + fputc( rowp[ic], fp ); } }