Changeset 339 in ntrip for trunk/rtcm3torinex


Ignore:
Timestamp:
Nov 29, 2006, 11:43:15 AM (17 years ago)
Author:
stoecker
Message:

fixed illegal zero byte

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/rtcm3torinex.c

    r328 r339  
    11/*
    22  Converter for RTCM3 data to RINEX.
    3   $Id: rtcm3torinex.c,v 1.12 2006/11/23 14:39:50 stoecker Exp $
     3  $Id: rtcm3torinex.c,v 1.13 2006/11/24 09:53:42 stoecker Exp $
    44  Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronik.eu>
    55
     
    5151
    5252/* CVS revision and version */
    53 static char revisionstr[] = "$Revision: 1.12 $";
     53static char revisionstr[] = "$Revision: 1.13 $";
    5454
    5555static uint32_t CRC24(long size, const unsigned char *buf)
     
    990990
    991991#ifndef NO_RTCM3_MAIN
    992 static char datestr[]     = "$Date: 2006/11/23 14:39:50 $";
     992static char datestr[]     = "$Date: 2006/11/24 09:53:42 $";
    993993
    994994/* The string, which is send as agent in HTTP request */
     
    13341334        exit(1);
    13351335      }
    1336       i += encode(buf+i, MAXDATASIZE-i-5, args.user, args.password);
    1337       if(i > MAXDATASIZE-5)
     1336      i += encode(buf+i, MAXDATASIZE-i-4, args.user, args.password);
     1337      if(i > MAXDATASIZE-4)
    13381338      {
    13391339        RTCM3Error("Username and/or password too long\n");
    13401340        exit(1);
    13411341      }
    1342       snprintf(buf+i, 5, "\r\n\r\n");
    1343       i += 5;
     1342      buf[i++] = '\r';
     1343      buf[i++] = '\n';
     1344      buf[i++] = '\r';
     1345      buf[i++] = '\n';
    13441346    }
    13451347    if(send(sockfd, buf, (size_t)i, 0) != i)
Note: See TracChangeset for help on using the changeset viewer.