summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_login_wnd.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-02-11 02:54:26 +0000
committerjsorg71 <jsorg71>2005-02-11 02:54:26 +0000
commit8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c (patch)
tree9639e1ff243c53e9bb8351c6d2e7a4149a018f4c /xrdp/xrdp_login_wnd.c
parentcf6e2abd416c26105396fa0dd1834e3879fa2e08 (diff)
downloadxrdp-proprietary-8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c.tar.gz
xrdp-proprietary-8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c.zip
fix some crashes and added some debug messages
Diffstat (limited to 'xrdp/xrdp_login_wnd.c')
-rw-r--r--xrdp/xrdp_login_wnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index e2320dfa..aecc77fe 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -403,7 +403,7 @@ int xrdp_login_wnd_create(struct xrdp_wm* self)
but->id = 4;
but->pointer = 1;
but->tab_stop = 1;
- but->caption1 = g_malloc(256, 1);
+ but->caption1 = (char*)g_malloc(256, 1);
self->login_window->focused_control = but;
/* label */
@@ -425,7 +425,7 @@ int xrdp_login_wnd_create(struct xrdp_wm* self)
but->id = 5;
but->pointer = 1;
but->tab_stop = 1;
- but->caption1 = g_malloc(256, 1);
+ but->caption1 = (char*)g_malloc(256, 1);
but->password_char = '*';
/* label */