diff scripts/image/saveimage.m @ 5446:4a00f3a31857

[project @ 2005-09-12 17:18:04 by jwe]
author jwe
date Mon, 12 Sep 2005 17:18:04 +0000
parents ec8c33dcd1bf
children 2618a0750ae6
line wrap: on
line diff
--- a/scripts/image/saveimage.m
+++ b/scripts/image/saveimage.m
@@ -188,7 +188,7 @@
 
       fid = fopen (filename, "wb");
       fprintf (fid, "P4\n%s\n%d %d\n", tagline, img_nr, img_nc);
-      fwrite (fid, tmp, "char");
+      fwrite (fid, tmp, "uchar");
       fprintf (fid, "\n");
       fclose (fid);