The following commit has been merged in the master branch:
commit abf8f8d7b8149f9653c22ac9a90342b8f02c9a4f
Author: Antonio Valentino <antonio.valent...@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

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to