summaryrefslogtreecommitdiffstats
path: root/xup
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-06-21 16:30:18 -0700
committerPavel Roskin <plroskin@gmail.com>2016-07-08 04:29:49 +0000
commit5829323ad88f8120730968cfe165e590a7fb2d59 (patch)
treeb5e13986d78de530a0a2168efdb95062e2803aca /xup
parenta24df49241adc7c49dff777742d668f1d6c690ad (diff)
downloadxrdp-proprietary-5829323ad88f8120730968cfe165e590a7fb2d59.tar.gz
xrdp-proprietary-5829323ad88f8120730968cfe165e590a7fb2d59.zip
Use g_new or g_new0 when C++ compiler would complain about implicit cast
Diffstat (limited to 'xup')
-rw-r--r--xup/xup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xup/xup.c b/xup/xup.c
index ef424b40..ada25c42 100644
--- a/xup/xup.c
+++ b/xup/xup.c
@@ -697,7 +697,7 @@ process_server_window_new_update(struct mod *mod, struct stream *s)
if (title_bytes > 0)
{
- rwso.title_info = g_malloc(title_bytes + 1, 0);
+ rwso.title_info = g_new(char, title_bytes + 1);
in_uint8a(s, rwso.title_info, title_bytes);
rwso.title_info[title_bytes] = 0;
}