Fix small warning

This commit is contained in:
pancake 2015-11-13 22:38:07 +01:00
parent 309e078a8d
commit 5f8c35a7dd

View File

@ -2916,7 +2916,9 @@ R_API RList* r_bin_java_get_strings(RBinJavaObj* bin) {
str->size = cp_obj->info.cp_utf8.length + 3;
str->length = cp_obj->info.cp_utf8.length;
if (str->size>0) {
str->string = r_str_ndup (cp_obj->info.cp_utf8.bytes, R_BIN_JAVA_MAXSTR);
str->string = r_str_ndup ((const char *)
cp_obj->info.cp_utf8.bytes,
R_BIN_JAVA_MAXSTR);
}
r_list_append (strings, (void *) str);
}