File: Fix-getpix-output.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 (26 lines) | stat: -rw-r--r-- 553 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
From: Ole Streicher <olebole@debian.org>
Date: Thu, 25 Jun 2020 16:14:57 +0200
Subject: Fix getpix output

---
 getpix.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/getpix.c b/getpix.c
index 325af04..a087705 100644
--- a/getpix.c
+++ b/getpix.c
@@ -773,11 +773,11 @@ int *xpix, *ypix;	/* Vectors of x,y coordinate pairs */
 	intout = 0;
 	}
     else if (bitpix > 0) {
-	strcpy (pform, "%%d");
+	sprintf (pform, "%%d");
 	intout = 1;
 	}
     else {
-	strcpy (pform, "%%.2f");
+	sprintf (pform, "%%.2f");
 	intout = 0;
 	}