Commit f1c06618 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix warning

parent 82b233f6
...@@ -1542,7 +1542,7 @@ static void MMISendObject( access_t *p_access, int i_session_id, ...@@ -1542,7 +1542,7 @@ static void MMISendObject( access_t *p_access, int i_session_id,
i_size = 1 + strlen( p_object->u.answ.psz_answ ); i_size = 1 + strlen( p_object->u.answ.psz_answ );
p_data = malloc( i_size ); p_data = malloc( i_size );
p_data[0] = (p_object->u.answ.b_ok == VLC_TRUE) ? 0x1 : 0x0; p_data[0] = (p_object->u.answ.b_ok == VLC_TRUE) ? 0x1 : 0x0;
strncpy( &p_data[1], p_object->u.answ.psz_answ, i_size - 1 ); strncpy( (char *)&p_data[1], p_object->u.answ.psz_answ, i_size - 1 );
break; break;
case EN50221_MMI_MENU_ANSW: case EN50221_MMI_MENU_ANSW:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment