diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-03-04 14:46:55 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2021-03-04 14:46:55 +0000 |
commit | 92e06c2342d3be46f9c133f3649fd1aca43a5361 (patch) | |
tree | c134b937a9a4a26e9e59e96a32f11dc7fc8b423a /graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc | |
parent | devel/libvirt: update to 7.1.0 (diff) |
- 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
Notes
Notes:
svn path=/head/; revision=567316
Diffstat (limited to 'graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc')
-rw-r--r-- | graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc b/graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc new file mode 100644 index 000000000000..b8f2410aa0e7 --- /dev/null +++ b/graphics/rawstudio/files/patch-plugins_load-dcraw_dcraw.cc @@ -0,0 +1,21 @@ +--- 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 (×tamp); + 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); |