diff --git a/src/preceph.c b/src/preceph.c index 2fef11a19..350e46cb5 100644 --- a/src/preceph.c +++ b/src/preceph.c @@ -88,7 +88,7 @@ static int readsp3h(FILE *fp, gtime_t *time, char *type, int *sats, } else if (!strncmp(buff,"+ ",2)) { /* satellite id */ if (ns==0) { - ns=(int)str2num(buff,4,2); + ns=(int)str2num(buff,3,3); } for (j=0;j<17&&k