projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s/TRANSLATORS/Translators/ in xgettext comments
[neverball]
/
share
/
image.c
diff --git
a/share/image.c
b/share/image.c
index
3293ec3
..
c5d574f
100644
(file)
--- a/
share/image.c
+++ b/
share/image.c
@@
-26,7
+26,7
@@
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
-void image_snap(char *filename)
+void image_snap(const char *filename)
{
FILE *filep = NULL;
png_structp writep = NULL;
{
FILE *filep = NULL;
png_structp writep = NULL;
@@
-69,7
+69,7
@@
void image_snap(char *filename)
/* Allocate and initialize the row pointers. */
/* Allocate and initialize the row pointers. */
- if ((bytep = png_malloc(writep, h * sizeof (png_bytep))))
+ if ((bytep = (png_bytep *) png_malloc(writep, h * sizeof (png_bytep))))
{
for (i = 0; i < h; ++i)
bytep[h - i - 1] = (png_bytep) (p + i * w * 3);
{
for (i = 0; i < h; ++i)
bytep[h - i - 1] = (png_bytep) (p + i * w * 3);