Skip to content

snprintf version doesn't compile for me #12

Open
@Eli-the-Bearded

Description

@Eli-the-Bearded

If I go back one commit to c7f0826, I can compile the game and run the game (but I don't see any colors). The current version at 5e75295b5 gets about a third of the way through compile before the snprintf() truncation warnings (all warnings treated as errors here) start to kick in. First one is:

src/dungeon_los.cpp:526:47: error: ‘%s’ directive output may be truncated writing up to 159 bytes into a region of size between 149 and 152 [-Werror=format-truncation=]
  526 |                 (void) snprintf(msg, 160, "%s %s ---pause---", description, obj_string);

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues with building / compilinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions