summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_login_wnd.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2009-05-19 04:23:49 +0000
committerjsorg71 <jsorg71>2009-05-19 04:23:49 +0000
commit23ffdb0c5fe0315d9d237f168e7d72abe0ba422c (patch)
tree9c565ce9f75c1aab5329837d209af63a9dd74a54 /xrdp/xrdp_login_wnd.c
parenta386eac0f931716e421e20a7cc07c2f0b4e70a2f (diff)
downloadxrdp-proprietary-23ffdb0c5fe0315d9d237f168e7d72abe0ba422c.tar.gz
xrdp-proprietary-23ffdb0c5fe0315d9d237f168e7d72abe0ba422c.zip
autotools fix and file_loc.h simplified
Diffstat (limited to 'xrdp/xrdp_login_wnd.c')
-rw-r--r--xrdp/xrdp_login_wnd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index 65b89749..6ac8e11d 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -390,6 +390,7 @@ xrdp_wm_login_fill_in_combo(struct xrdp_wm* self, struct xrdp_bitmap* b)
char* q;
char* r;
char name[256];
+ char cfg_file[256];
struct xrdp_mod_data* mod_data;
sections = list_create();
@@ -398,7 +399,8 @@ xrdp_wm_login_fill_in_combo(struct xrdp_wm* self, struct xrdp_bitmap* b)
section_names->auto_free = 1;
section_values = list_create();
section_values->auto_free = 1;
- 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 */
file_read_sections(fd, sections);
for (i = 0; i < sections->count; i++)
{