[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/image.c
From: |
Dan Nicolaescu |
Subject: |
[Emacs-diffs] Changes to emacs/src/image.c |
Date: |
Fri, 30 Sep 2005 18:38:26 -0400 |
Index: emacs/src/image.c
diff -c emacs/src/image.c:1.34 emacs/src/image.c:1.35
*** emacs/src/image.c:1.34 Wed Sep 28 10:48:20 2005
--- emacs/src/image.c Fri Sep 30 22:38:15 2005
***************
*** 2178,2184 ****
if (stat (file, &st) == 0
&& (fp = fopen (file, "rb")) != NULL
! && (buf = (char *) xmalloc (st.st_size),
fread (buf, 1, st.st_size, fp) == st.st_size))
{
*size = st.st_size;
--- 2178,2184 ----
if (stat (file, &st) == 0
&& (fp = fopen (file, "rb")) != NULL
! && (buf = (unsigned char *) xmalloc (st.st_size),
fread (buf, 1, st.st_size, fp) == st.st_size))
{
*size = st.st_size;
***************
*** 3029,3035 ****
bytes_per_line = (*width + 7) / 8 + padding_p;
nbytes = bytes_per_line * *height;
! p = *data = (char *) xmalloc (nbytes);
if (v10)
{
--- 3029,3035 ----
bytes_per_line = (*width + 7) / 8 + padding_p;
nbytes = bytes_per_line * *height;
! p = *data = (unsigned char *) xmalloc (nbytes);
if (v10)
{