diff options
author | Bryan Ischo <bji@lolita.(none)> | 2009-02-12 23:06:56 +1300 |
---|---|---|
committer | Bryan Ischo <bji@lolita.(none)> | 2009-02-12 23:06:56 +1300 |
commit | dbfababac17498a14985f3b8f19b184cb6e6f160 (patch) | |
tree | b2b89d8b9633f934088d567a915a0f235f33d367 | |
parent | 4cf93bce37b9bf8f52a4fd4185e1eb2e781d801e (diff) | |
download | ceph-libs3-dbfababac17498a14985f3b8f19b184cb6e6f160.tar.gz |
* Fixed a bug in urlEncode that was not terminating strings sometimes
-rw-r--r-- | src/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -63,6 +63,7 @@ int urlEncode(char *dest, const char *src, int maxSrcSize) if (src) while (*src) { if (++len > maxSrcSize) { + *dest = 0; return 0; } const char *urlsafe = urlSafe; |