diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-26 22:23:30 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-26 22:23:30 +0000 |
commit | 946bde4a62fa9c4c47315defb2e31cf54d821246 (patch) | |
tree | 4c8722f3db4e1cc5800519d00ccd30c60c50dd3d /kdecore/kurl.cpp | |
parent | a20928b6bfae18a41bb42b85e10f73fb63548ccc (diff) | |
download | tdelibs-946bde4a62fa9c4c47315defb2e31cf54d821246.tar.gz tdelibs-946bde4a62fa9c4c47315defb2e31cf54d821246.zip |
Patch a few buffer overrun problems and odd crash potentials
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1217371 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kurl.cpp')
-rw-r--r-- | kdecore/kurl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kdecore/kurl.cpp b/kdecore/kurl.cpp index 047f18dee..428ab2f20 100644 --- a/kdecore/kurl.cpp +++ b/kdecore/kurl.cpp @@ -83,7 +83,7 @@ static TQString encode( const TQString& segment, int encoding_offset, int encodi int old_length = isRawURI ? local.size() - 1 : local.length(); - if ( !old_length ) + if ( old_length < 1 ) return segment.isNull() ? TQString::null : TQString(""); // differentiate null and empty // a worst case approximation |