diff --git a/neth/main.cpp b/neth/main.cpp index 1eac7fb1f..599461dcb 100644 --- a/neth/main.cpp +++ b/neth/main.cpp @@ -1023,7 +1023,7 @@ void print_in_middle(WINDOW *win, int starty, int startx, int width, string str, length = str.length(); temp = (width - length) / 2; - x = startx + (int)temp; + x = x + (int)temp; wattron(win, color); mvwprintw(win, y, x, "%s", str.c_str()); wattroff(win, color);