Commit 4950bd4e authored by Michael Niedermayer's avatar Michael Niedermayer

libavutil/mem: use size_t for the length in av_strdup()

the string length is not constrained to INT_MAX
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 54e64eaf
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment