NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 6760


Ignore:
Timestamp:
Mar 4, 2014, 2:56:07 PM (4 years ago)
Author:
bless@…
Message:
  • rephrased a comparison to get rid of compiler warning about signed/unsigned comparison
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protlib/branches/2013-01-18-RELOAD-goltsman/src/network_message.cpp

    r6743 r6760  
    244244uint32 NetMsg::copy_from_cpos (const protlib::uchar* source, protlib::uint32 length)
    245245{
    246   if ( (length + pos - buf) > buf_len) throw NetMsgError (NetMsgError::ERROR_TOO_SHORT);
     246  if ( (length + pos) > (buf_len + buf) ) throw NetMsgError (NetMsgError::ERROR_TOO_SHORT);
    247247  memmove (pos, source, length);
    248248  pos += length;
Note: See TracChangeset for help on using the changeset viewer.