Skip to content

Commit

Permalink
fix small variable name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
twiddlingbits committed Apr 28, 2024
1 parent c1394e3 commit 14bf3d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/stdio-canvas/stdio-canvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ void stdio_canvas() {
}

void show_str_centered(struct IoConsoleWindow* iow, int h, const char* str) {
int strlen=strlen(str);
int x=(iow->display.io_width-strlen)/2;
int len=strlen(str);
int x=(iow->display.io_width-len)/2;

io_set_cursorxy(iow, x, h);
io_putstr(&iow->con, str);
Expand Down

0 comments on commit 14bf3d3

Please sign in to comment.