Commit 00cf08da authored by W. Michael Petullo's avatar W. Michael Petullo

Fix size of array to match received string

parent 097f3dad
......@@ -911,10 +911,11 @@ dmap_content_code_string_as_int32 (const gchar * str)
gint32 i;
gchar str[4];
gchar str[5];
} u;
strncpy (u.str, str, 4);
u.str[4] = 0x00;
return g_htonl (u.i);
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