- Timestamp:
- Oct 13, 2006, 6:04:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2.cpp
r246 r247 277 277 void ThirtyBitWord::getHeader(string& buf) { 278 278 279 if (buf.length() == 0) return;280 281 279 unsigned int W_old = W; 282 280 unsigned int i; … … 285 283 while (!isHeader() || i<5 ) { 286 284 // 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) { 288 286 W = W_old; 289 287 failure = true;
Note:
See TracChangeset
for help on using the changeset viewer.