diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-11-13 08:46:08 -0800 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-11-15 22:40:06 -0800 |
commit | 35b336272b5ee4e2c30d622230c6a71b03b76082 (patch) | |
tree | 9b27347f73036ed63e3f5ac9a67ea2f0a305db29 | |
parent | 16c3bbdb8d14868644bd4df499569489721af93b (diff) | |
download | xrdp-proprietary-35b336272b5ee4e2c30d622230c6a71b03b76082.tar.gz xrdp-proprietary-35b336272b5ee4e2c30d622230c6a71b03b76082.zip |
Fix compilation with C++
-rw-r--r-- | sesman/chansrv/chansrv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c index 2d2160fc..c7ce1f48 100644 --- a/sesman/chansrv/chansrv.c +++ b/sesman/chansrv/chansrv.c @@ -1400,7 +1400,7 @@ get_log_path() log_path = g_getenv("XDG_DATA_HOME"); if (log_path != 0) { - cp = malloc(strlen(log_path) + strlen("/xrdp") + 1); + cp = g_new(char, strlen(log_path) + strlen("/xrdp") + 1); if (cp != 0) { @@ -1423,7 +1423,7 @@ get_log_path() log_path = g_getenv("HOME"); if (log_path != 0) { - cp = malloc(strlen(log_path) + strlen("/.local/share/xrdp") + 1); + cp = g_new(char, strlen(log_path) + strlen("/.local/share/xrdp") + 1); if (cp != 0) { |