Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mem: Make av_strdup allocate using av_realloc

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-17 08:13:12 +02:00
commit 21b3563dcb
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ char *av_strdup(const char *s)
char *ptr = NULL;
if (s) {
int len = strlen(s) + 1;
ptr = av_malloc(len);
ptr = av_realloc(NULL, len);
if (ptr)
memcpy(ptr, s, len);
}