diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 16:06:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 16:06:50 +0200 |
commit | 4950bd4ebedbb6289734234bb2a719820f565c41 (patch) | |
tree | 4bf4bbfcbadd8462d4347307af38ec37ace16a2e /libavutil | |
parent | 54e64eaf68e08aa69a441b783dd51304e64ca479 (diff) | |
download | ffmpeg-4950bd4ebedbb6289734234bb2a719820f565c41.tar.gz |
libavutil/mem: use size_t for the length in av_strdup()
the string length is not constrained to INT_MAX
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c index 5fd2395dab..da291fb970 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -266,7 +266,7 @@ char *av_strdup(const char *s) { char *ptr = NULL; if (s) { - int len = strlen(s) + 1; + size_t len = strlen(s) + 1; ptr = av_realloc(NULL, len); if (ptr) memcpy(ptr, s, len); |