Merge pull request #432 from mico-micic/fix-size-t-warnings
Avoid conversion to 'size_t' from 'int' warnings
This commit is contained in:
commit
7b15ab0306
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ typedef struct map_str2str map_str2str;
|
||||||
static inline char * strdup4(char *str)
|
static inline char * strdup4(char *str)
|
||||||
{
|
{
|
||||||
char *dup;
|
char *dup;
|
||||||
int len;
|
size_t len;
|
||||||
len = align4(strlen(str)+1);
|
len = align4(strlen(str)+1);
|
||||||
if ((dup = (char*) malloc(len)) == NULL)
|
if ((dup = (char*) malloc(len)) == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue