Changeset 2352 in ntrip for trunk/rtcm3torinex


Ignore:
Timestamp:
Mar 5, 2010, 12:11:06 PM (14 years ago)
Author:
stoecker
Message:

fixed overflow

Location:
trunk/rtcm3torinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/makefile

    r480 r2352  
    22# fixable. There is nothing special at this source.
    33
    4 rtcm3torinex: rtcm3torinex.c
    5         $(CC) -Wall -W -O3 -lm $? -o $@
     4rtcm3torinex: rtcm3torinex.c rtcm3torinex.h
     5        $(CC) -Wall -W -O3 -lm rtcm3torinex.c -o $@
    66
    77archive:
  • trunk/rtcm3torinex/rtcm3torinex.c

    r2346 r2352  
    11/*
    22  Converter for RTCM3 data to RINEX.
    3   $Id: rtcm3torinex.c,v 1.31 2010/01/16 11:07:57 weber Exp $
     3  $Id: rtcm3torinex.c,v 1.38 2010/03/01 13:48:25 stoecker Exp $
    44  Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu>
    55
     
    5555
    5656/* CVS revision and version */
    57 static char revisionstr[] = "$Revision: 1.31 $";
     57static char revisionstr[] = "$Revision: 1.38 $";
    5858
    5959#ifndef COMPILEDATE
     
    490490        SKIPBITS(4) /* smind, smint */
    491491
    492         while(numsats--)
     492        while(numsats-- && gnss->numsats < GNSS_MAXSATS)
    493493        {
    494494          int sv, code, l1range, c,l,s,ce,le,se,amb=0;
     
    658658        SKIPBITS(4) /* smind, smint */
    659659
    660         while(numsats--)
     660        while(numsats-- && gnss->numsats < GNSS_MAXSATS)
    661661        {
    662662          int sv, code, l1range, c,l,s,ce,le,se,amb=0;
     
    16841684
    16851685#ifndef NO_RTCM3_MAIN
    1686 static char datestr[]     = "$Date: 2010/01/16 11:07:57 $";
     1686static char datestr[]     = "$Date: 2010/03/01 13:48:25 $";
    16871687
    16881688/* The string, which is send as agent in HTTP request */
  • trunk/rtcm3torinex/rtcm3torinex.h

    r2346 r2352  
    44/*
    55  Converter for RTCM3 data to RINEX.
    6   $Id: rtcm3torinex.h,v 1.19 2010/01/12 12:13:23 mervart Exp $
     6  $Id: rtcm3torinex.h,v 1.11 2010/03/01 13:48:25 stoecker Exp $
    77  Copyright (C) 2005-2006 by Dirk Stöcker <stoecker@alberding.eu>
    88
     
    2424
    2525#include <stdio.h>
     26
     27#define GNSS_MAXSATS 64
    2628
    2729#define PRN_GPS_START             1
     
    114116  int    numsats;
    115117  double timeofweek;         /* milliseconds in GPS week */
    116   double measdata[24][GNSSENTRY_NUMBER];  /* data fields */
    117   int    dataflags[24];      /* GPSDF_xxx */
    118   int    satellites[24];     /* SV - IDs */
    119   int    channels[24];       /* Glonass channels - valid of Glonass SV only */
    120   int    snrL1[24];          /* Important: all the 5 SV-specific fields must */
    121   int    snrL2[24];          /* have the same SV-order */
     118  double measdata[GNSS_MAXSATS][GNSSENTRY_NUMBER];  /* data fields */
     119  int    dataflags[GNSS_MAXSATS];      /* GPSDF_xxx */
     120  int    satellites[GNSS_MAXSATS];     /* SV - IDs */
     121  int    channels[GNSS_MAXSATS];       /* Glonass channels - valid of Glonass SV only */
     122  int    snrL1[GNSS_MAXSATS];          /* Important: all the 5 SV-specific fields must */
     123  int    snrL2[GNSS_MAXSATS];          /* have the same SV-order */
    122124};
    123125
Note: See TracChangeset for help on using the changeset viewer.