aboutsummaryrefslogtreecommitdiff
path: root/src/xml_stream.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml_stream.erl')
-rw-r--r--src/xml_stream.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml_stream.erl b/src/xml_stream.erl
index 1deb8936e..205945fce 100644
--- a/src/xml_stream.erl
+++ b/src/xml_stream.erl
@@ -99,7 +99,7 @@ new(CallbackPid) ->
new(CallbackPid, infinity).
new(CallbackPid, MaxSize) ->
- Port = open_port({spawn, expat_erl}, [binary]),
+ Port = open_port({spawn, "expat_erl"}, [binary]),
#xml_stream_state{callback_pid = CallbackPid,
port = Port,
stack = [],
@@ -140,7 +140,7 @@ close(#xml_stream_state{port = Port}) ->
parse_element(Str) ->
- Port = open_port({spawn, expat_erl}, [binary]),
+ Port = open_port({spawn, "expat_erl"}, [binary]),
Res = port_control(Port, ?PARSE_FINAL_COMMAND, Str),
port_close(Port),
process_element_events(binary_to_term(Res)).