File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function setupMethods (soljson) {
28
28
} ;
29
29
}
30
30
31
- var copyString = function ( str , ptr ) {
31
+ var copyToCString = function ( str , ptr ) {
32
32
var length = soljson . lengthBytesUTF8 ( str ) ;
33
33
var buffer = soljson . _malloc ( length + 1 ) ;
34
34
soljson . stringToUTF8 ( str , buffer , length + 1 ) ;
@@ -40,10 +40,10 @@ function setupMethods (soljson) {
40
40
return function ( path , contents , error ) {
41
41
var result = callback ( soljson . Pointer_stringify ( path ) ) ;
42
42
if ( typeof result . contents === 'string' ) {
43
- copyString ( result . contents , contents ) ;
43
+ copyToCString ( result . contents , contents ) ;
44
44
}
45
45
if ( typeof result . error === 'string' ) {
46
- copyString ( result . error , error ) ;
46
+ copyToCString ( result . error , error ) ;
47
47
}
48
48
} ;
49
49
} ;
You can’t perform that action at this time.
0 commit comments