From d35e3f562fc67cd9bfbd7a2caadb59c1f9c45fb7 Mon Sep 17 00:00:00 2001 From: Sublunar Space Date: Sat, 2 Feb 2019 19:36:55 +0100 Subject: [PATCH] fixed dayjump --- lib/sweph/pmom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sweph/pmom.c b/lib/sweph/pmom.c index 71773c8..03f223d 100644 --- a/lib/sweph/pmom.c +++ b/lib/sweph/pmom.c @@ -339,6 +339,7 @@ const char * pmom(int days, long epoch, double latitude, double longitude, int b //length += snprintf(Buffer+length, buflen-length, "%d setyes %d risetod %d settod %d risetom %d nhly %d dhlt %d nhlt %d pday %d\n", hm, solar[0], solar[1], solar[2], solar[3], solar[4], solar[5], solar[6], solar[7]); + if(j == days && h == 23) length += snprintf(Buffer+length, buflen-length, ""); else length += snprintf(Buffer+length, buflen-length, ", ");