]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
repo_mdk: fix @recommends@ tag offset 614/head
authorMaat <434725+pvi-github@users.noreply.github.com>
Sat, 18 Apr 2026 16:58:06 +0000 (18:58 +0200)
committerMaat <434725+pvi-github@users.noreply.github.com>
Sat, 18 Apr 2026 16:58:06 +0000 (18:58 +0200)
Fix the offset to buf + 12 to match the tag length, aligning with every other branch in the dispatcher.

ext/repo_mdk.c

index 4d3e102b7a5f3bd9c78208c878a06344cc44a5bf..e4debc31ee23dab3ab69ffdece60bb7e4b8315e4 100644 (file)
@@ -124,7 +124,7 @@ repo_add_mdk(Repo *repo, FILE *fp, int flags)
       else if (!strncmp(buf + 1, "requires@", 9))
        s->requires = parse_deps(s, buf + 10, SOLVABLE_PREREQMARKER);
       else if (!strncmp(buf + 1, "recommends@", 11))
-       s->recommends = parse_deps(s, buf + 10, 0);
+       s->recommends = parse_deps(s, buf + 12, 0);
       else if (!strncmp(buf + 1, "suggests@", 9))
        s->suggests = parse_deps(s, buf + 10, 0);
       else if (!strncmp(buf + 1, "obsoletes@", 10))