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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
Description: Fix for over-zealous format-security errors from compiler
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2019-04-16
Forwarded: no
Index: ncl-6.6.2/ni/src/lib/nfp/wrfW.c
===================================================================
--- ncl-6.6.2.orig/ni/src/lib/nfp/wrfW.c
+++ ncl-6.6.2/ni/src/lib/nfp/wrfW.c
@@ -1514,7 +1514,7 @@ NhlErrorTypes wrf_slp_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr,"%s", errmsg);
exit(errstat);
}
/*
@@ -9221,7 +9221,7 @@ NhlErrorTypes wrf_ll_to_ij_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
@@ -9867,7 +9867,7 @@ NhlErrorTypes wrf_ij_to_ll_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
@@ -10529,7 +10529,7 @@ NhlErrorTypes wrf_cape_3d_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
@@ -11232,7 +11232,7 @@ NhlErrorTypes wrf_cape_2d_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
/*
@@ -13620,7 +13620,7 @@ NhlErrorTypes wrf_wetbulb_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
Index: ncl-6.6.2/ni/src/lib/nfp/ripW.c
===================================================================
--- ncl-6.6.2.orig/ni/src/lib/nfp/ripW.c
+++ ncl-6.6.2/ni/src/lib/nfp/ripW.c
@@ -533,7 +533,7 @@ NhlErrorTypes rip_cape_3d_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
@@ -1080,7 +1080,7 @@ NhlErrorTypes rip_cape_2d_W( void )
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
Index: ncl-6.6.2/ni/src/lib/nfp/wrf_vinterpW.c
===================================================================
--- ncl-6.6.2.orig/ni/src/lib/nfp/wrf_vinterpW.c
+++ ncl-6.6.2/ni/src/lib/nfp/wrf_vinterpW.c
@@ -819,7 +819,7 @@ NclBasicDataTypes type_ter;
&errstat, errmsg, ERRLEN);
/* Terminate if there was an error */
if (errstat != 0) {
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(errstat);
}
|