Can't this be:

    gchar struct_str[2048] = { 0 };

?