diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 17:09:07 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 17:09:07 +0300 |
commit | 4c128ea1629116fc4936edc5f96bbd18f3ef1647 (patch) | |
tree | 15ccb31a3c4eb6f06e6783b0a8fcc8d1e3fdc395 /libavutil | |
parent | 4950bd4ebedbb6289734234bb2a719820f565c41 (diff) |
avutil/dict: Use size_t for appending strings
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/dict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/dict.c b/libavutil/dict.c index 4e4ea5f26f..6ff1af5215 100644 --- a/libavutil/dict.c +++ b/libavutil/dict.c @@ -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; |