[SCM] mapready branch, master, updated. upstream/2.3.17-11-g84cb57e
Antonio Valentino
antonio.valentino at tiscali.it
Sun Jun 26 19:55:03 UTC 2011
The following commit has been merged in the master branch:
commit abf8f8d7b8149f9653c22ac9a90342b8f02c9a4f
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Sun Jun 26 19:55:19 2011 +0200
New patch for an invalid call to fgets (turned into a build error by gcc 4.5)
diff --git a/debian/patches/fgets.patch b/debian/patches/fgets.patch
new file mode 100644
index 0000000..687b3dd
--- /dev/null
+++ b/debian/patches/fgets.patch
@@ -0,0 +1,12 @@
+Pass a buffer with appropriate size to fgets
+--- a/src/asf_convert_gui/utility.c
++++ b/src/asf_convert_gui/utility.c
+@@ -567,7 +567,7 @@
+ // If the header file actually exists, look for the mosaic string
+ if (fileExists(headerFile)) {
+ FILE *fp;
+- char line[512];
++ char line[1024];
+ fp = fopen(headerFile, "r");
+ while (fgets(line, 1024, fp)) {
+ if (strstr(line, "SIGMA-SAR-MOSAIC")) {
diff --git a/debian/patches/series b/debian/patches/series
index e9d0426..58f2ee0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
config-and-build.patch
fix-implicit-pointer-conversion.patch
spelling.patch
+fgets.patch
--
The MapReady Remote Sensing Tool Kit
More information about the Pkg-grass-devel
mailing list