diff options
author | jsorg71 <jsorg71> | 2009-05-19 04:23:49 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2009-05-19 04:23:49 +0000 |
commit | 23ffdb0c5fe0315d9d237f168e7d72abe0ba422c (patch) | |
tree | 9c565ce9f75c1aab5329837d209af63a9dd74a54 /xrdp/xrdp_wm.c | |
parent | a386eac0f931716e421e20a7cc07c2f0b4e70a2f (diff) | |
download | xrdp-proprietary-23ffdb0c5fe0315d9d237f168e7d72abe0ba422c.tar.gz xrdp-proprietary-23ffdb0c5fe0315d9d237f168e7d72abe0ba422c.zip |
autotools fix and file_loc.h simplified
Diffstat (limited to 'xrdp/xrdp_wm.c')
-rw-r--r-- | xrdp/xrdp_wm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 42504d36..b42a48dc 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -371,13 +371,15 @@ xrdp_wm_init(struct xrdp_wm* self) char* q; char* r; char section_name[256]; + char cfg_file[256]; xrdp_wm_load_static_colors(self); xrdp_wm_load_static_pointers(self); self->screen->bg_color = self->black; if (self->session->client_info->rdp_autologin) { - fd = g_file_open(XRDP_CFG_FILE); /* xrdp.ini */ + g_snprintf(cfg_file, 255, "%s/xrdp.ini", XRDP_CFG_PATH); + fd = g_file_open(cfg_file); /* xrdp.ini */ if (fd > 0) { names = list_create(); |