Skip to content

Commit

Permalink
Fixes 2 CodeQL issues (#88)
Browse files Browse the repository at this point in the history
Fixes: #83, #84
  • Loading branch information
LiquidityC authored Feb 24, 2025
1 parent 942647e commit dfed896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/item_builder.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pickup_gold(Item *item, Player *player)
{
player->gold += item->value;
mixer_play_effect(COIN);
gui_log("You pick up %s", &item->label);
gui_log("You pick up %s", item->label);
}

Item *
Expand Down
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,8 @@ run(void)
frame++;
if (timer_get_ticks(updateTimer) > 1000) {
char buffer[20];
m_sprintf(buffer, 20, "FPS: %u", frame / (timer_get_ticks(fpsTime) / 1000));
m_sprintf(buffer, 20, "FPS: %lu",
frame / (timer_get_ticks(fpsTime) / 1000));
texture_load_from_text(fpsSprite->textures[0], buffer, C_RED, C_WHITE, gRenderer);
fpsSprite->dim = fpsSprite->textures[0]->dim;
timer_start(updateTimer);
Expand Down

0 comments on commit dfed896

Please sign in to comment.