Browse files

fixed APPEND

  • Loading branch information...
1 parent 1c2af26 commit 4f5e37effa71cd8bc89ad78dfd410be03e3637ea @tj committed Apr 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/commands/string.js
View
3 lib/commands/string.js
@@ -186,8 +186,9 @@ exports.strlen = function(client, key){
var offset = obj.val.length
, len = offset + str.length
, buf = new Buffer(len);
- val.copy(buf);
+ obj.val.copy(buf);
str.copy(buf, offset);
+ obj.val = buf;
this.db.data[key] = obj;
client.int(len);
} else {

0 comments on commit 4f5e37e

Please sign in to comment.