[mpp]: Fix compiling error on Linux

Issue: https://github.com/rockchip-linux/mpp/issues/48

Change-Id: I08bc75a4cab23d4b96c6bac3b671e50edbff55fb
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2018-08-07 08:45:48 +08:00
parent 76b8c229a2
commit b81b3e52cd
4 changed files with 5 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ MppTimer mpp_timer_get(const char *name)
MppTimerImpl *impl = mpp_calloc(MppTimerImpl, 1);
if (impl) {
impl->check = module_name;
snprintf(impl->name, sizeof(impl->name), name);
snprintf(impl->name, sizeof(impl->name), name, NULL);
} else
mpp_err_f("malloc failed\n");