don't hardcode string and array length
authorMischa POSLAWSKY <netris@shiar.org>
Mon, 5 Mar 2007 18:31:24 +0000 (19:31 +0100)
committerMischa POSLAWSKY <netris@shiar.org>
Mon, 5 Mar 2007 18:31:24 +0000 (19:31 +0100)
netris.h

index 6cc395ca2c9edb9b0db31e57afc7249a56646998..6ed388cf58400d37936ff5c3343ea90aa5fd09d4 100644 (file)
--- 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"
 };