Skip to content

Commit

Permalink
strncpy instead
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Jun 8, 2017
1 parent fabd002 commit 326fc2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/udprelay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
goto CLEAN_UP;
}

//char *addr_header = buf->array + offset;
strcpy(addr_header, buf->array + offset);
strncpy(addr_header, buf->array + offset, addr_header_len);
}
#endif

Expand Down

0 comments on commit 326fc2b

Please sign in to comment.