Skip to content

mafToFastaStitcher compilation error #33

@francicco

Description

@francicco

Hi,

I'm having a problem compiling mafToFastaStitcher.

I'm getting this error

src/mafToFastaStitcherAPI.c:655:22: error: ‘%lu’ directive writing between 1 and 19 bytes into a region of size 7 [-Werror=format-overflow=]
     sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2);
                      ^~~~~~~
src/mafToFastaStitcherAPI.c:655:27: note: format string is defined here
     sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2);
src/mafToFastaStitcherAPI.c:655:22: note: directive argument in the range [3, 9223372036854775808]
     sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2);
                      ^~~~~~~
src/mafToFastaStitcherAPI.c:655:5: note: ‘sprintf’ output between 6 and 24 bytes into a destination of size 10
     sprintf(fmtName, " %%-%" PRIu64 "s", maxName + 2);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Can you help?
Thanks a lot
Francesco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions