freebsd-ports/security/stegdetect/files/patch-common.c
Pav Lucistnik 77c0fcc55f - Update to 0.6
- Take maintainership

PR:		ports/95793
Submitted by:	Rainer Alves <rainer.alves@gmail.com>
2006-04-15 15:43:17 +00:00

47 lines
1.1 KiB
C

--- common.c.orig Sun Aug 29 20:11:00 2004
+++ common.c Sat Apr 15 00:11:40 2006
@@ -85,7 +85,7 @@
if (datasrc->bytes_in_buffer == 0) {
if (! (*datasrc->fill_input_buffer) (cinfo))
- err(1, "%s: fill_input", __FUNCTION__);
+ err(1, "jpeg_getc: fill_input");
}
datasrc->bytes_in_buffer--;
return GETJOCTET(*datasrc->next_input_byte++);
@@ -308,7 +308,7 @@
dcts = malloc(bits * sizeof (short));
if (dcts == NULL) {
- warn("%s: malloc", __FUNCTION__);
+ warn("prepare_all: malloc");
return (-1);
}
@@ -374,7 +374,7 @@
if (pdcts != NULL) {
dcts = malloc(bits * sizeof (short));
if (dcts == NULL) {
- warn("%s: malloc", __FUNCTION__);
+ warn("prepare_normal: malloc");
return (-1);
}
}
@@ -422,7 +422,7 @@
/* XXX - wasteful */
back[comp] = calloc(off, sizeof (char));
if (back[comp] == NULL) {
- warn("%s: calloc", __FUNCTION__);
+ warn("prepare_jphide: calloc");
goto err;
}
}
@@ -430,7 +430,7 @@
if (pdcts != NULL) {
dcts = malloc(mbits * sizeof (short));
if (dcts == NULL) {
- warn("%s: malloc", __FUNCTION__);
+ warn("prepare_jphide: malloc");
goto err;
}
}