"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xup/xup.c" between
xrdp-0.9.13.1.tar.gz and xrdp-0.9.14.tar.gz

About: xrdp is a remote desktop protocol (rdp) server (accepting connections from rdesktop and Microsoft’s own terminal server / remote desktop clients).

xup.c  (xrdp-0.9.13.1):xup.c  (xrdp-0.9.14)
skipping to change at line 1547 skipping to change at line 1547
return 0; return 0;
} }
/******************************************************************************/ /******************************************************************************/
/* return error */ /* return error */
int int
lib_mod_set_param(struct mod *mod, const char *name, const char *value) lib_mod_set_param(struct mod *mod, const char *name, const char *value)
{ {
if (g_strcasecmp(name, "username") == 0) if (g_strcasecmp(name, "username") == 0)
{ {
g_strncpy(mod->username, value, 255); g_strncpy(mod->username, value, INFO_CLIENT_MAX_CB_LEN-1);
} }
else if (g_strcasecmp(name, "password") == 0) else if (g_strcasecmp(name, "password") == 0)
{ {
g_strncpy(mod->password, value, 255); g_strncpy(mod->password, value, INFO_CLIENT_MAX_CB_LEN-1);
} }
else if (g_strcasecmp(name, "ip") == 0) else if (g_strcasecmp(name, "ip") == 0)
{ {
g_strncpy(mod->ip, value, 255); g_strncpy(mod->ip, value, 255);
} }
else if (g_strcasecmp(name, "port") == 0) else if (g_strcasecmp(name, "port") == 0)
{ {
g_strncpy(mod->port, value, 255); g_strncpy(mod->port, value, 255);
} }
else if (g_strcasecmp(name, "client_info") == 0) else if (g_strcasecmp(name, "client_info") == 0)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)