diff --git a/binr/ragg2/ragg2.c b/binr/ragg2/ragg2.c index 0e1a613f70..67199cde01 100644 --- a/binr/ragg2/ragg2.c +++ b/binr/ragg2/ragg2.c @@ -146,8 +146,8 @@ int main(int argc, char **argv) { char *p = strchr (optarg, ':'); if (p) { *p = 0; - off = r_num_get (NULL, optarg); - n = r_num_get (NULL, p+1); + off = r_num_math (NULL, optarg); + n = r_num_math (NULL, p+1); *p = ':'; // TODO: honor endianness here r_egg_patch (egg, off, (const ut8*)&n, 4); @@ -159,8 +159,8 @@ int main(int argc, char **argv) { ut64 off, n; char *p = strchr (optarg, ':'); if (p) { - off = r_num_get (NULL, optarg); - n = r_num_get (NULL, p+1); + off = r_num_math (NULL, optarg); + n = r_num_math (NULL, p+1); // TODO: honor endianness here r_egg_patch (egg, off, (const ut8*)&n, 8); } else eprintf ("Missing colon in -d\n");