summaryrefslogtreecommitdiff
path: root/libavutil/mem.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-10 16:06:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-10 16:06:50 +0200
commit4950bd4ebedbb6289734234bb2a719820f565c41 (patch)
tree4bf4bbfcbadd8462d4347307af38ec37ace16a2e /libavutil/mem.c
parent54e64eaf68e08aa69a441b783dd51304e64ca479 (diff)
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/mem.c')
-rw-r--r--libavutil/mem.c2
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);