summaryrefslogtreecommitdiffstats
path: root/common/os_calls.c
diff options
context:
space:
mode:
authorArvidNorr <norrarvid@gmail.com>2013-01-31 20:17:42 +0100
committerArvidNorr <norrarvid@gmail.com>2013-01-31 20:17:42 +0100
commitfb7294ed26d28b12d8da5cf5f41f5975f1999f04 (patch)
treeb9187dc027d03d3050eff329ae937415ec6a2002 /common/os_calls.c
parentfa55ece029d21d6dde581465e8fb863796b6fd7f (diff)
downloadxrdp-proprietary-fb7294ed26d28b12d8da5cf5f41f5975f1999f04.tar.gz
xrdp-proprietary-fb7294ed26d28b12d8da5cf5f41f5975f1999f04.zip
small len fixes
Diffstat (limited to 'common/os_calls.c')
-rw-r--r--common/os_calls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index a3daaa3a..500db201 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -503,7 +503,7 @@ g_tcp_close(int sck)
#if defined(_WIN32)
closesocket(sck);
#else
- g_write_ip_address(sck,ip,256);
+ g_write_ip_address(sck,ip,255);
log_message(LOG_LEVEL_INFO,"An established connection closed to endpoint: %s", ip);
close(sck);
#endif
@@ -654,7 +654,7 @@ g_tcp_accept(int sck)
ret = accept(sck, (struct sockaddr *)&s, &i);
if(ret>0)
{
- snprintf(ipAddr,256,"A connection received from: %s port %d"
+ snprintf(ipAddr,255,"A connection received from: %s port %d"
,inet_ntoa(s.sin_addr),ntohs(s.sin_port));
log_message(LOG_LEVEL_INFO,ipAddr);
}