freebsd-ports/graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc
Alexey Dokuchaev 92e06c2342 - Revivify and unbreak by fixing problematic code and
suppressing dreaded C++11 narrowing warnings/errors
- Convert to USES+=localbase and optimize away LIBS+=
- Remove excessive vertical whitespace from one patch
- Chase HTTP redirection in the WWW line of pkg-descr
2021-03-04 14:46:55 +00:00

21 lines
718 B
C++

--- plugins/load-dcraw/dcraw.cc.orig 2015-05-29 01:03:46 UTC
+++ plugins/load-dcraw/dcraw.cc
@@ -869,7 +869,8 @@ struct jhead {
int CLASS ljpeg_start (struct jhead *jh, int info_only)
{
- int c, tag, len;
+ int c, tag;
+ ushort len;
uchar data[0x10000];
const uchar *dp;
@@ -8605,7 +8606,7 @@ void CLASS tiff_head (struct tiff_hdr *th, int full)
strncpy (th->desc, desc, 512);
strncpy (th->make, make, 64);
strncpy (th->model, model, 64);
- strcpy (th->soft, "dcraw v"DCRAW_VERSION);
+ strcpy (th->soft, "dcraw v" DCRAW_VERSION);
t = gmtime (&timestamp);
sprintf (th->date, "%04d:%02d:%02d %02d:%02d:%02d",
t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);