Skip to content

Commit 3fdc1fc

Browse files
committed
Don't try to use strerror since the raster stream may not be coming from a file.
1 parent 6d5a2b0 commit 3fdc1fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cups/raster-stream.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ _cupsRasterNew(
574574
// Open for read - get sync word...
575575
if (cups_raster_io(r, (unsigned char *)&(r->sync), sizeof(r->sync)) != sizeof(r->sync))
576576
{
577-
_cupsRasterAddError("Unable to read header from raster stream: %s", strerror(errno));
577+
_cupsRasterAddError("Unable to read sync word from raster stream.");
578578
free(r);
579579
DEBUG_puts("1_cupsRasterNew: Unable to read header, returning NULL.");
580580
return (NULL);
@@ -603,7 +603,7 @@ _cupsRasterNew(
603603
if (cups_raster_io(r, (unsigned char *)header, sizeof(header)) !=
604604
sizeof(header))
605605
{
606-
_cupsRasterAddError("Unable to read header from raster stream: %s", strerror(errno));
606+
_cupsRasterAddError("Unable to read Apple Raster file header from raster stream.");
607607
free(r);
608608
DEBUG_puts("1_cupsRasterNew: Unable to read header, returning NULL.");
609609
return (NULL);

0 commit comments

Comments
 (0)