mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 19:53:46 +00:00
remove uncessary memcpy
This commit is contained in:
@@ -22,13 +22,6 @@ void ERROR(const char *s) {
|
||||
|
||||
}
|
||||
|
||||
void bufcpy(char *dest, const char *src, size_t n) {
|
||||
int i;
|
||||
for (i = 0; i < n; i++) {
|
||||
*dest++ = *src++;
|
||||
}
|
||||
}
|
||||
|
||||
char *itoa(int i) {
|
||||
/* Room for INT_DIGITS digits, - and '\0' */
|
||||
static char buf[INT_DIGITS + 2];
|
||||
|
||||
Reference in New Issue
Block a user