From 80a785334fb8fd4c9fc7a5726b0589aaa90238c3 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 8 Aug 2019 17:07:50 +0200 Subject: [PATCH] - added format patch (adjust declarations of buffer sizes when one will contain the other) --- camwire-format.patch | 11 +++++++++++ camwire.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 camwire-format.patch diff --git a/camwire-format.patch b/camwire-format.patch new file mode 100644 index 0000000..270e2f9 --- /dev/null +++ b/camwire-format.patch @@ -0,0 +1,11 @@ +--- camwire2-2.0.0-Source/examples/cammonitor/cammonitor.c.orig 2011-04-13 00:13:21.000000000 +0200 ++++ camwire2-2.0.0-Source/examples/cammonitor/cammonitor.c 2019-08-08 16:34:30.242313655 +0200 +@@ -57,7 +57,7 @@ + #define DEFAULT_SAVE_DELAY 0.0 + #define SAFE_FRAME_PERIOD 1.5 + #define MAX_FILENAME 1000 +-#define MAX_MESSAGE 1000 ++#define MAX_MESSAGE 1200 + #define MAX_IMAGE_HEADER 200 + #define MAX_TIMESTAMP 50 + #define MAX_KEY_INPUT 100 diff --git a/camwire.spec b/camwire.spec index 19e8a6b..77381d9 100644 --- a/camwire.spec +++ b/camwire.spec @@ -12,6 +12,7 @@ Patch0: %{name}-link.patch Patch1: %{name}-etc.patch Patch2: %{name}-lib.patch Patch3: %{name}-bogus-inline.patch +Patch4: %{name}-format.patch URL: http://kauri.auck.irl.cri.nz/~johanns/camwire/ BuildRequires: SDL-devel BuildRequires: cmake >= 2.6 @@ -77,6 +78,7 @@ Camwire. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build # disable unused-result warning, compilation failure with -Werror -- 2.44.0