Commit 4c128ea1 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/dict: Use size_t for appending strings

the string length is not constrained to INT_MAX
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4950bd4e
......@@ -109,7 +109,7 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value,
m->elems[m->count].key = copy_key;
m->elems[m->count].value = copy_value;
if (oldval && flags & AV_DICT_APPEND) {
int len = strlen(oldval) + strlen(copy_value) + 1;
size_t len = strlen(oldval) + strlen(copy_value) + 1;
char *newval = av_mallocz(len);
if (!newval)
goto err_out;
......
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