From e91a66b48a30cf840e10431d7203b458d304fe38 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 26 Jan 2020 22:21:32 -0800 Subject: [PATCH] cleanup --- xwords4/linux/curgamlistwin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xwords4/linux/curgamlistwin.c b/xwords4/linux/curgamlistwin.c index 9f4efb834..ccb382ea9 100644 --- a/xwords4/linux/curgamlistwin.c +++ b/xwords4/linux/curgamlistwin.c @@ -221,8 +221,8 @@ cgl_draw( CursGameList* cgl ) mvwaddstr( win, 0, cgl->width-1, "+" ); } - const char* cols[] = {"Row", "RowID", "Lang", "Scores", "GameID", "Role", "Room", - "nTotal", "nMissing", "Seed", "nMoves", "Turn", "nPend", }; + const char* cols[] = {"#", "RowID", "Lang", "Scores", "GameID", "Role", "Room", + "nTot", "nMiss", "Seed", "#Mv", "Turn", "nPend", }; int nShown = nGames <= cgl->height - 2 ? nGames : cgl->height - 2; char* data[nShown + 1][VSIZE(cols)]; @@ -235,7 +235,7 @@ cgl_draw( CursGameList* cgl ) int col = 0; data[line][col++] = g_strdup_printf( "%d", ii + cgl->yOffset + 1 ); /* 1-based */ data[line][col++] = g_strdup_printf( "%05lld", gi->rowid ); - data[line][col++] = g_strdup( codeToLang(gi->dictLang) ); + data[line][col++] = g_strndup( codeToLang(gi->dictLang), 4 ); data[line][col++] = g_strdup( gi->scores ); data[line][col++] = g_strdup_printf( "%d", gi->gameID ); data[line][col++] = g_strdup_printf( "%d", gi->role );