mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
fix compiler warnings
Origin commit data
------------------
Branch: master
Commit: cd387592d0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-09 (Thu, 09 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1772,9 +1772,9 @@ int32_t container_ffmpeg_init_av_context(Context_t *context, char *filename, uin
|
||||
|
||||
if (2 == haveNativeProto)
|
||||
{
|
||||
filename = malloc(strlen(baseUri) + 2 + 1);
|
||||
strncpy(filename, "ff", 2);
|
||||
strcpy(filename + 2, baseUri);
|
||||
int len = strlen(baseUri) + 2 + 1;
|
||||
filename = malloc(len);
|
||||
snprintf(filename,len,"ff%s",baseUri);
|
||||
free(baseUri);
|
||||
// memory leak, only once, so does not matter
|
||||
}
|
||||
|
Reference in New Issue
Block a user