summarylogtreecommitdiffstats
path: root/format_security.patch
blob: 55dc459bfd649fa45d6651c2b8e77fff9367d2a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
diff -u -r Metview-5.12.0-Source-orig/metview/src/Macro/mvector.cc Metview-5.12.0-Source/metview/src/Macro/mvector.cc
--- Metview-5.12.0-Source-orig/metview/src/Macro/mvector.cc	2021-05-28 14:08:01.975699414 +0200
+++ Metview-5.12.0-Source/metview/src/Macro/mvector.cc	2021-05-28 14:08:25.042614971 +0200
@@ -19,7 +19,7 @@
 /*
 
   To do:  (o = to do, * = done)
-  
+
     * allow nil & vector
     * allow vector & vector
     * vector op vector
@@ -687,7 +687,7 @@
     sprintf(typeBuffer, "%-10s", CArray::stringFromValuesType(values->type()).c_str());
 
     fprintf(f, "METVIEW_VECTOR");
-    fprintf(f, typeBuffer);
+    fprintf(f, "%s", typeBuffer);
 
     int size = values->count();
     fwrite(&size, sizeof(int), 1, f);  // write the number of values
@@ -1231,7 +1231,7 @@
 /*
 class VectorProductFunction : public Function {
 public:
-	VectorProductFunction(char *n) : Function(n,2,tvector,tvector) 
+	VectorProductFunction(char *n) : Function(n,2,tvector,tvector)
 	{info = "Vector product";};
 	virtual Value Execute(int arity,Value *arg);
 };
@@ -1254,7 +1254,7 @@
 
 	for(int i=0;i<a->Count();i++)
 		;
-		
+
 	return Value(c);
 }
 */