This is the patch I used in my NMU.

diff -u gpstrans-0.40/debian/changelog gpstrans-0.40/debian/changelog
--- gpstrans-0.40/debian/changelog
+++ gpstrans-0.40/debian/changelog
@@ -1,3 +1,10 @@
+gpstrans (0.40-3.1) unstable; urgency=low
+
+  * Non-maintainer upload to fix RC bug.
+  * Fix segfault using patch from Robie Basak (Closes: #399828).
+
+ -- Petter Reinholdtsen <[EMAIL PROTECTED]>  Sun, 30 Mar 2008 23:38:02 +0200
+
 gpstrans (0.40-3) unstable; urgency=low

   * don't always strip the binary (closes:Bug#437077)
only in patch2:
unchanged:
--- gpstrans-0.40.orig/src/gps/getgpsinfo.c
+++ gpstrans-0.40/src/gps/getgpsinfo.c
@@ -335,7 +335,7 @@
          getGPSMessage();
          n=data[-1];
          p=protocols=xmalloc(5*n/3+1);
-         for ( ; n; n-=3)
+         for ( ; n>0; n-=3)
            {
              tag=*s; udata=toshort(s+1);
              /* translate each protocol tag and data to the string used in the 
docs */



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to