aboutsummaryrefslogtreecommitdiffstats
path: root/win/vncconfig/Connections.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/vncconfig/Connections.h')
-rw-r--r--win/vncconfig/Connections.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/vncconfig/Connections.h b/win/vncconfig/Connections.h
index d3e4dace..fbf46ec1 100644
--- a/win/vncconfig/Connections.h
+++ b/win/vncconfig/Connections.h
@@ -60,7 +60,7 @@ namespace rfb {
pattern.replaceBuf(0);
}
bool onOk() {
- CharArray host(getItemString(IDC_HOST_PATTERN));
+ CharArray host(strDup(getItemString(IDC_HOST_PATTERN)));
CharArray newPat(strlen(host.buf)+2);
if (isItemChecked(IDC_ALLOW))
newPat.buf[0] = '+';