summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_login_wnd.c
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-06-21 16:30:16 -0700
committerPavel Roskin <plroskin@gmail.com>2016-06-21 16:30:16 -0700
commit77b380c0b5b6eb4f074a4a8735d109e226512508 (patch)
tree83866e48c2b31ab9f3cc811a2e3b418119eaa243 /xrdp/xrdp_login_wnd.c
parentb1527b7947b867a8dc6dd22bda9147713c10620b (diff)
downloadxrdp-proprietary-77b380c0b5b6eb4f074a4a8735d109e226512508.tar.gz
xrdp-proprietary-77b380c0b5b6eb4f074a4a8735d109e226512508.zip
Fix format warnings in log_message() calls
Diffstat (limited to 'xrdp/xrdp_login_wnd.c')
-rw-r--r--xrdp/xrdp_login_wnd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index c9fca912..76fc59b0 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -273,7 +273,6 @@ xrdp_wm_parse_domain_information(char *originalDomainInfo, int comboMax,
int pos;
int comboxindex;
char index[2];
- char debugstr[256];
/* If the first char in the domain name is '_' we use the domain
name as IP*/
@@ -300,11 +299,9 @@ xrdp_wm_parse_domain_information(char *originalDomainInfo, int comboMax,
/* we just accept values 0-9 (one figure) */
g_strncpy(index, &originalDomainInfo[pos + 3], 1);
comboxindex = g_htoi(index);
- g_snprintf(debugstr, 255, "Value of index (as char): %s "
- "(converted) : %d (max) : %d", index, comboxindex,
- comboMax - 1);
- debugstr[255] = 0;
- log_message(LOG_LEVEL_DEBUG, debugstr);
+ log_message(LOG_LEVEL_DEBUG,
+ "index value as string: %s, as int: %d, max: %d",
+ index, comboxindex, comboMax - 1);
/* limit to max number of items in combo box */
if ((comboxindex > 0) && (comboxindex < comboMax))
{