Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preparing for release of 2.6.9pre2
[rsync/rsync.git]
/
lib
/
inet_ntop.c
diff --git
a/lib/inet_ntop.c
b/lib/inet_ntop.c
index
7866999
..
15e3ebd
100644
(file)
--- a/
lib/inet_ntop.c
+++ b/
lib/inet_ntop.c
@@
-81,7
+81,7
@@
inet_ntop4(const unsigned char *src, char *dst, size_t size)
errno = ENOSPC;
return (NULL);
}
errno = ENOSPC;
return (NULL);
}
-
strcpy(dst, tmp
);
+
memcpy(dst, tmp, len + 1
);
return (dst);
}
return (dst);
}
@@
-178,7
+178,7
@@
inet_ntop6(const unsigned char *src, char *dst, size_t size)
errno = ENOSPC;
return (NULL);
}
errno = ENOSPC;
return (NULL);
}
-
strcpy(dst,
tmp);
+
memcpy(dst, tmp, tp -
tmp);
return (dst);
}
#endif /* AF_INET6 */
return (dst);
}
#endif /* AF_INET6 */