summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netlib.c b/netlib.c
index 3c3aa66d..e09406e2 100644
--- a/netlib.c
+++ b/netlib.c
@@ -159,8 +159,8 @@ socket_t netlib_localsocket(const char *sockfile, int socktype)
memset(&saddr, 0, sizeof(struct sockaddr_un));
saddr.sun_family = AF_UNIX;
- (void)strlcpy(saddr.sun_path,
- sockfile,
+ (void)strlcpy(saddr.sun_path,
+ sockfile,
sizeof(saddr.sun_path));
/*@-unrecog@*/
@@ -175,7 +175,7 @@ socket_t netlib_localsocket(const char *sockfile, int socktype)
}
char *netlib_sock2ip(socket_t fd)
-/* retrieve the IP address corresponding to a socket */
+/* retrieve the IP address corresponding to a socket */
{
sockaddr_t fsin;
socklen_t alen = (socklen_t) sizeof(fsin);