Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix leveldb-dump output

  • Loading branch information...
commit 7ee10b8427b582d19fe22ee4143f916b7e4b31a7 1 parent a0ba3e1
@rescrv authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  leveldb-dump.cc
View
2  leveldb-dump.cc
@@ -92,7 +92,7 @@ decode(const char* data, size_t data_sz, std::vector<char>* out)
++ptr;
*ptr = 'x';
++ptr;
- sprintf(ptr, "%02x", data[i]);
+ sprintf(ptr, "%02x", data[i] & 0xff);
ptr += 2;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.