File: Fix-several-bugs-that-appear-in-during-the-mayhem-tests.patch

package info (click to toggle)
wcstools 3.9.7-1.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 14,684 kB
  • sloc: ansic: 113,336; sh: 553; makefile: 245; lisp: 86; sed: 1
file content (34 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (3)
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
From: Ole Streicher <debian@liska.ath.cx>
Date: Fri, 5 Aug 2016 16:17:42 +0200
Subject: Fix several bugs that appear in during the mayhem tests.

---
 cphead.c | 2 +-
 getpix.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/cphead.c b/cphead.c
index 2dbd967..4f32570 100644
--- a/cphead.c
+++ b/cphead.c
@@ -148,7 +148,7 @@ char **av;
 			free (kwd);
 			kwd = kwdnew;
 			}
-		    for (ikwd = nkwd; i < nkwd+nkwd1+32; i++) {
+		    for (ikwd = nkwd; ikwd < nkwd+nkwd1+32; ikwd++) {
 			kwd[ikwd] = (char *) calloc (32, 1);
 			}
 		    strcpy (kwd[nkwd], "RA");
diff --git a/getpix.c b/getpix.c
index 878c1d0..325af04 100644
--- a/getpix.c
+++ b/getpix.c
@@ -87,6 +87,7 @@ char **av;
     char *yrange;       /* Vertical(y) range string */
     char *rstr;
     char *dstr = NULL;
+    char rastr[32], decstr[32];
     char *cstr;
     int systemp;
     int i, j;