Accept more than 4 arguments, too.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 29 Apr 2005 14:52:24 +0000 (14:52 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Fri, 29 Apr 2005 14:52:24 +0000 (14:52 +0000)
src/message_handler.sma

index b956bbb799515a168da929ff5bc3e7326b34c181..1d5927724ea4e2217b3202de6cf880bf32aba015 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: message_handler.sma 19 2005-04-29 14:31:53Z tilman $ */
+/* $Id: message_handler.sma 20 2005-04-29 14:52:24Z tilman $ */
 
 #define MSG_ID_SET_SONGNAME 0
 
 
 #define MSG_ID_SET_SONGNAME 0
 
@@ -8,7 +8,7 @@ public message (Msg_Type:type, id, ...)
                case MSG_ID_SET_SONGNAME: {
                        new buf[256], artist[128], title[128], len;
 
                case MSG_ID_SET_SONGNAME: {
                        new buf[256], artist[128], title[128], len;
 
-                       if (type != MSG_STRING_SET || numargs () != 4)
+                       if (type != MSG_STRING_SET || numargs () < 4)
                                return;
 
                        getsarg (2, artist, 128);
                                return;
 
                        getsarg (2, artist, 128);