From: Mischa POSLAWSKY Date: Mon, 5 Mar 2007 18:31:24 +0000 (+0100) Subject: don't hardcode string and array length X-Git-Url: http://git.shiar.net/netris.git/commitdiff_plain/6018664c6358e2a38bec00d9ed1cd2ac761b1b1d don't hardcode string and array length --- diff --git a/netris.h b/netris.h index 6cc395c..6ed388c 100644 --- a/netris.h +++ b/netris.h @@ -195,7 +195,7 @@ EXT _Game Game; EXT short port; // => just in client.c, parameter to inet connect -static const char teamname[10][7] = { +static const char *teamname[] = { "", "Green", "Cyan", "Blue", "Purple", "Red", "Grey", "White", "*Orange" };