From 5d5506e8fe6e3cf7cb3295f94af55dd5121da051 Mon Sep 17 00:00:00 2001 From: Lukasz Sanocki Date: Sat, 18 Dec 2021 22:59:56 +0100 Subject: [PATCH] gsc2.3 work again - fix --- GUI/xephem/gscnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/xephem/gscnet.c b/GUI/xephem/gscnet.c index 08b8f3e..5d0beaf 100644 --- a/GUI/xephem/gscnet.c +++ b/GUI/xephem/gscnet.c @@ -29,8 +29,8 @@ char msg[]) /* return diagnostic message here, if returning -1 */ { #define GSC23MAXFOV degrad(30./60.0) /* max fov */ /* http://gsss.stsci.edu/webservices/vo/ConeSearch.aspx?RA=10.0&DEC=5.0&SR=0.2&FORMAT=CSV */ - static char ifmt[] = "%[^,],%lf,%lf,%*[^,],%*[^,],%*[^,],%*[^,],%lf,%lf,%*[^,],%*[^,],%lf,%lf,%lf,%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%d"; - static char gfmt[] = " GET http://%s%s?RA=%g&DEC=%g&SR=%g&FORMAT=CSV HTTP/1.0\r\nUser-Agent: xephem/%s\r\n\r\n"; + static char ifmt[] = "%[^,],%*[^,],%*[^,],%*[^,],%lf,%lf,%*[^,],%*[^,],%*[^,], %*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%lf,%*[^,],%*[^,],%lf,%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%lf,%*[^,],%*[^,],%lf,%*[^,],%*[^,],%lf,%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%*[^,],%d"; + static char gfmt[] = "GET http://%s%s?RA=%g&DEC=%g&SR=%g&FORMAT=CSV&CAT=GSC23 HTTP/1.0\r\nUser-Agent: xephem/%s\r\n\r\n"; char host[1024]; char buf[2048]; char *hp1;