Changeset 247 in ntrip for trunk/BNC


Ignore:
Timestamp:
Oct 13, 2006, 6:04:29 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/RTCM2.cpp

    r246 r247  
    277277void ThirtyBitWord::getHeader(string& buf) {
    278278
    279   if (buf.length() == 0) return;
    280 
    281279  unsigned int W_old = W;
    282280  unsigned int i;
     
    285283  while (!isHeader() || i<5 ) {
    286284    // Check if string is long enough; if not restore old word and exit
    287     if (buf.size()-1<i) {
     285    if (buf.size() == 0 || buf.size()-1<i) {
    288286      W = W_old;
    289287      failure = true;
Note: See TracChangeset for help on using the changeset viewer.