]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: use SBuf::npos instead of npos in SBuf::append()
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 28 Sep 2014 18:49:09 +0000 (11:49 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 28 Sep 2014 18:49:09 +0000 (11:49 -0700)
commit42beec472b4a43e07cd2e9fc0b5f703f12ed96b3
tree86e11d57351e0bd9fb2d768ab5144e98a49fcc0d
parent5401ef21cd32ee3e02c8075ee13430f3c679faf0
Cleanup: use SBuf::npos instead of npos in SBuf::append()

Small experiment. It is possible on some systems that std::npos / ::npos
is defined with a different integer size and value.
This may be what is confusing Coverity scan and producing buffer overrun
alerts in the append() c-string with default parameter case.
src/SBuf.cc