Skip to content

Commit

Permalink
Fixed sds.c bug #124
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Dec 18, 2009
1 parent b055378 commit b2b5ae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions TODO
Expand Up @@ -75,6 +75,7 @@ it's not a guarantee they'll ever get implemented ;)
* Pattern-matching replication.
* Don't save empty lists / sets / zsets on disk with snapshotting.
* Remove keys when a list / set / zset reaches length of 0.
* Add an option to relax the delete-expiring-keys-on-write semantic *denying* replication and AOF when this is on? Can be handy sometimes, when using Redis for non persistent state.

DOCUMENTATION WISHLIST
======================
Expand Down
2 changes: 1 addition & 1 deletion sds.c
Expand Up @@ -140,7 +140,7 @@ sds sdscpylen(sds s, char *t, size_t len) {
size_t totlen = sh->free+sh->len;

if (totlen < len) {
s = sdsMakeRoomFor(s,len-totlen);
s = sdsMakeRoomFor(s,len-sh->len);
if (s == NULL) return NULL;
sh = (void*) (s-(sizeof(struct sdshdr)));
totlen = sh->free+sh->len;
Expand Down

0 comments on commit b2b5ae8

Please sign in to comment.