mirror of
https://github.com/radareorg/r2unity.git
synced 2026-11-07 06:36:00 -10:00
Fix pedantic mesonery
This commit is contained in:
1 parent
922bad8fd8
commit
656ab44e01
3 files changed
+12
-1
No files matched your search
@@ -9,6 +9,14 @@ project(
|
||||
],
|
||||
)
|
||||
|
||||
add_project_arguments(
|
||||
[
|
||||
'-D_DEFAULT_SOURCE',
|
||||
'-D_POSIX_C_SOURCE=200809L',
|
||||
],
|
||||
language: 'c',
|
||||
)
|
||||
|
||||
r_util_dep = dependency('r_util')
|
||||
|
||||
conf = configuration_data()
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#define R_LOG_ORIGIN "r2unity.paths"
|
||||
|
||||
#include "lib.h"
|
||||
#include <strings.h>
|
||||
#include <r_util.h>
|
||||
|
||||
static bool str_ieq(const char *a, const char *b) {
|
||||
|
||||
+3
-1
@@ -589,7 +589,9 @@ static bool find_method_pointers_fast(R2UnityMetadata *meta, const char *path, u
|
||||
ut8 magic[4] = { 0 };
|
||||
FILE *fp = fopen (path, "rb");
|
||||
if (fp) {
|
||||
(void)fread (magic, 1, 4, fp);
|
||||
if (fread (magic, 1, sizeof (magic), fp) != sizeof (magic)) {
|
||||
memset (magic, 0, sizeof (magic));
|
||||
}
|
||||
fclose (fp);
|
||||
}
|
||||
if (!memcmp (magic, "\x7f"
|
||||
|
||||
Reference in new issue
Block a user