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;
}
|