You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
408 B
13 lines
408 B
diff --git a/chipmunk/rparse.c b/chipmunk/rparse.c
|
|
index 8cbdda5..560e50d 100644
|
|
--- a/chipmunk/rparse.c
|
|
+++ b/chipmunk/rparse.c
|
|
@@ -175,7 +175,7 @@ parse_udprelay( const char* opt, size_t optlen,
|
|
|
|
assert( opt && s_addr && s_addrlen && addr && addrlen && port );
|
|
|
|
- (void) strncpy( s, opt, MAX_OPTLEN );
|
|
+ (void) snprintf(s, MAX_OPTLEN, "%s", opt);
|
|
s[ MAX_OPTLEN - 1 ] = '\0';
|
|
|
|
do {
|
|
|