We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0765b13 commit 5157cbbCopy full SHA for 5157cbb
1 file changed
lib/oid.js
@@ -39,13 +39,13 @@ var Oid = exports.Oid = function(arg) {
39
40
Oid.prototype.toString = function() {
41
//var _str = new FFI.Pointer(FFI.Bindings.POINTER_SIZE);
42
- var _str = new FFI.Pointer(40);
+ var _str = new FFI.Pointer(41);
43
libgit2.git_oid_fmt(_str, this.coid);
44
var buff = new Buffer(40);
45
for(i=0; i<40; ++i) {
46
- buff[i] = _str.getUInt8(true);
+ buff[i] = _str.seek(i).getUInt8();
47
}
48
- delete _str
+ delete _ostr
49
return buff.toString('utf8')
50
51
0 commit comments