]> git.feebdaed.xyz Git - 0xmirror/radare2.git/commitdiff
Fix accidental regression
authorpancake <pancake@nopcode.org>
Thu, 11 Dec 2025 13:07:41 +0000 (14:07 +0100)
committerpancake <pancake@nopcode.org>
Thu, 11 Dec 2025 13:07:41 +0000 (14:07 +0100)
libr/core/cconfig.c

index 546bf914cd9bb5c31228db305cbe88322393f11b..df935adfc51e9862f5bbc416eb8f6a2e6b54c81d 100644 (file)
@@ -110,7 +110,7 @@ static bool cb_diff_sort(void *_core, void *_node) {
                return true;
        }
 fail:
-       eprintf ("e diff.sort = [name, namelen, addr, type, size, dist]\n");
+       R_LOG_INFO ("e diff.sort = [name, namelen, addr, type, size, dist]");
        return false;
 }
 
@@ -1773,12 +1773,14 @@ static bool cb_color_getter(void *user, RConfigNode *node) {
        return true;
 }
 
+// R2R test/db/cmd/cmd_pd_bugs
 static bool cb_reloff(void *user, void *data) {
        const char options[] = "func\nflag\nmaps\ndmap\nfmap\nsect\nsymb\nlibs\nfile\n";
        RConfigNode *node = (RConfigNode *)data;
        if (*node->value) {
                char *pos = strstr (options, node->value);
-               if (pos && r_str_endswith (node->value, "\n")) {
+               size_t len = strlen (node->value);
+               if (pos && pos[len] == '\n') {
                        return true;
                }
                if (strchr (node->value, '?')) {