File: format-security.patch

package info (click to toggle)
grads 3%3A2.2.1-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,264 kB
  • sloc: ansic: 61,645; sh: 10,612; makefile: 206; python: 3
file content (23 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Fix format-security error.
Last-Updated: 2011-10-23
Forwarded: no

Index: grads-2.2.1/src/gagx.c
===================================================================
--- grads-2.2.1.orig/src/gagx.c
+++ grads-2.2.1/src/gagx.c
@@ -4977,11 +4977,11 @@ gadouble *gr;
 
   if (pcm->ffile != stdout) {
     if (pcm->fwname) {
-      snprintf(pout,1255,"Wrote %ld of %i elements to ", written, exsz);
+      snprintf(pout,1255,"Wrote %ld of %i elements to ", (long) written, exsz);
       gaprnt (2,pout);
       gaprnt (2,pcm->fwname);
     } else {
-      snprintf(pout,1255,"Wrote %ld of %i elements to grads.fwrite", written, exsz);
+      snprintf(pout,1255,"Wrote %ld of %i elements to grads.fwrite", (long) written, exsz);
       gaprnt (2,pout);
     }