mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk libT) have tr_strndup() take an ssize_t instead of an int
This commit is contained in:
@@ -302,7 +302,7 @@ static TR_INLINE void* tr_memdup( const void * src, int byteCount )
|
||||
( (struct_type *) realloc ( ( mem ), ( (size_t) sizeof ( struct_type ) ) * ( ( size_t) ( n_structs ) ) ) )
|
||||
|
||||
/** @param in is a void* so that callers can pass in both signed & unsigned without a cast */
|
||||
char* tr_strndup( const void * in, int len ) TR_GNUC_MALLOC;
|
||||
char* tr_strndup( const void * in, ssize_t len ) TR_GNUC_MALLOC;
|
||||
|
||||
/** @param in is a void* so that callers can pass in both signed & unsigned without a cast */
|
||||
static TR_INLINE char* tr_strdup( const void * in )
|
||||
|
||||
Reference in New Issue
Block a user