wcstools/wcstools3-codewarn.patch
Sergio Pascual 6f8aa5484a - New upstream source 3.6.6beta
Mon Sep 4 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-3
- Rebuild.
Wed Aug 30 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-2
- Corrected bug in edhead (patch2) (bug #204642).
Fri Jun 21 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.5-1
- New upstream source 3.6.5
Tue Jun 13 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-3
- Patched overflows in catutil.c and getdate.c
- Patched incompatible pointer in binread.c
Mon Jun 12 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-2
- Patched edhead.
- libwcs provides libwcs.so.3
- libwcs into System Environment/Libraries group
- Makefile uses ${RPM_OPT_FLAGS} and $(CC)
Fri Jun 09 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.4-1
- Removed not needed ldconfig in wcstools and libwcs-devel.
Wed Mar 08 2006 Sergio Pascual <spr@astrax.fis.ucm.es> 3.6.3-1
- Initial RPM file.
2006-10-10 11:28:24 +00:00

35 lines
1.3 KiB
Diff

+++ wcstools-3.6.6/getdate.c 2006-10-10 12:07:22.000000000 +0200
--- wcstools-3.6.6.orig/getdate.c 2006-10-10 12:06:11.000000000 +0200
@@ -413,7 +413,7 @@
char *fitsdate, *newfdate, *stdate;
char temp[64];
char fyear[16];
- char ts0[8];
+ char ts0[9];
char *tchar;
int its, its1;
time_t lts;
diff -ur wcstools-3.6.6.orig/libwcs/binread.c wcstools-3.6.6/libwcs/binread.c
--- wcstools-3.6.6.orig/libwcs/binread.c 2006-10-10 12:10:47.000000000 +0200
+++ wcstools-3.6.6/libwcs/binread.c 2006-10-10 12:11:22.000000000 +0200
@@ -1358,7 +1358,7 @@
for (i = 0; i < nmag; i++) {
moveb (sc->catline, (char *) st->mag, 2, sc->entmag[0]+(i*2), i*2);
if (sc->byteswapped)
- binswap2 (&st->mag[i], 2);
+ binswap2 ((char*)&st->mag[i], 2);
st->xmag[i] = 0.01 * (double) st->mag[i];
}
}
diff -ur wcstools-3.6.6.orig/libwcs/catutil.c wcstools-3.6.6/libwcs/catutil.c
--- wcstools-3.6.6.orig/libwcs/catutil.c 2006-10-10 12:10:47.000000000 +0200
+++ wcstools-3.6.6/libwcs/catutil.c 2006-10-10 12:12:08.000000000 +0200
@@ -722,7 +722,7 @@
lname = 0;
else
lname = strlen (refcatname);
- catname = (char *)calloc (lname + 16, 1);
+ catname = (char *)calloc (lname + 37, 1);
if (lname > 0)
sprintf (catname, "%s sources", refcatname);
else