aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src/nteventlog.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/os_mon/src/nteventlog.erl')
-rw-r--r--lib/os_mon/src/nteventlog.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/os_mon/src/nteventlog.erl b/lib/os_mon/src/nteventlog.erl
index d624048c29..1fdc0f2025 100644
--- a/lib/os_mon/src/nteventlog.erl
+++ b/lib/os_mon/src/nteventlog.erl
@@ -121,9 +121,8 @@ code_change(_OldVsn, State, _Extra) ->
%%----------------------------------------------------------------------
start_portprogram(Identifier) ->
- Command =
- filename:join([code:priv_dir(os_mon),"bin","nteventlog.exe"]) ++
- " " ++ make_list(Identifier),
+ Command = "\"" ++ filename:join([code:priv_dir(os_mon),"bin","nteventlog.exe"]) ++
+ "\" " ++ make_list(Identifier),
open_port({spawn,Command},[{packet,2}]).
make_list(X) when is_atom(X) ->