File: 02_hardening-format-security.diff

package info (click to toggle)
catdvi 0.14-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,160 kB
  • sloc: ansic: 8,703; perl: 51; sh: 38; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix "format not a string literal and no format arguments"
Author: Bart Martens <bartm@debian.org>
Bug-Debian: http://bugs.debian.org/643361
Forwarded: no

diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/catdvi-0.14/bytesex.c ./bytesex.c
--- ../orig/catdvi-0.14/bytesex.c	2002-07-05 23:34:18.000000000 +0200
+++ ./bytesex.c	2011-09-29 03:58:45.000000000 +0200
@@ -36,7 +36,7 @@
                 } else {
                         panic("%s\n", strerror(errno));
                 }
-                panic(errmsg);
+                panic("%s", errmsg);
         }
 }