File: octave5.patch

package info (click to toggle)
octave-vibes 0.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: cpp: 1,033; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 585 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix FTBFS against Octave 5
 mkoctfile now passes -Werror=format-security, so we explicitly set the format
 string in calls to error().
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: https://savannah.gnu.org/bugs/index.php?58859
Last-Update: 2019-10-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/__vibes__.cpp
+++ b/src/__vibes__.cpp
@@ -396,7 +396,7 @@ DEFUN_DLD (__vibes__, args, nargout,
     }
   catch (std::exception& e)
     {
-      error (e.what ());
+      error ("%s", e.what ());
     }
   catch (...)
     {