Skip to content

Commit 6d376ba

Browse files
committed
Fix for UTF8String size
1 parent 53c5e81 commit 6d376ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/document.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function parse_file(filename::String)
9191
end
9292

9393
function parse_string(s::String)
94-
p = ccall(xmlParseMemory, Xptr, (Ptr{Cchar}, Cint), s, length(s) + 1)
94+
p = ccall(xmlParseMemory, Xptr, (Ptr{Cchar}, Cint), s, sizeof(s) + 1)
9595
p != nullptr || throw(XMLParseError("Failure in parsing an XML string."))
9696
XMLDocument(p)
9797
end

0 commit comments

Comments
 (0)