mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-06 21:28:32 +02:00
CLuaInstance::createChannelIDfromUrl: Use format macro in snprintf
This commit is contained in:
@@ -2728,7 +2728,7 @@ int CLuaInstance::createChannelIDfromUrl(lua_State *L)
|
|||||||
|
|
||||||
t_channel_id id = CREATE_CHANNEL_ID(0, 0, 0, url);
|
t_channel_id id = CREATE_CHANNEL_ID(0, 0, 0, url);
|
||||||
char id_str[17];
|
char id_str[17];
|
||||||
snprintf(id_str, sizeof(id_str), "%llx", id);
|
snprintf(id_str, sizeof(id_str), "%" PRIx64, id);
|
||||||
|
|
||||||
lua_pushstring(L, id_str);
|
lua_pushstring(L, id_str);
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user