File: fix_format_security.patch

package info (click to toggle)
trilinos 16.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 993,992 kB
  • sloc: cpp: 3,764,859; ansic: 425,011; fortran: 160,684; python: 101,476; xml: 74,329; sh: 37,044; makefile: 22,641; perl: 7,525; f90: 6,424; csh: 5,285; objc: 2,620; lex: 1,646; lisp: 810; yacc: 603; javascript: 552; awk: 364; ml: 281; php: 145
file content (13 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: trilinos/packages/isorropia/example/order_example.cpp
===================================================================
--- trilinos.orig/packages/isorropia/example/order_example.cpp
+++ trilinos/packages/isorropia/example/order_example.cpp
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
         cout << "Matrix market file name: " << MMFileName << endl;
     }
 
-    sprintf(file_name, MMFileName.c_str());
+    sprintf(file_name, "%s", MMFileName.c_str());
 
     // ==================== Read input Matrix ==============================
     Epetra_CrsMatrix *A;