clarification: get_info() returns const char *

This commit is contained in:
marschap
2006-04-12 08:12:13 +00:00
parent e558530d02
commit 587085a292
19 changed files with 24 additions and 23 deletions
+2 -1
View File
@@ -303,7 +303,8 @@ info_func (Client * c, int argc, char **argv)
}
memset(str, '\0', sizeof(str));
snprintf (str, sizeof(str)-1, (char*) drivers_get_info());
snprintf (str, sizeof(str)-1, "%s\n", drivers_get_info());
str[sizeof(str)-1] = '\0';
sock_send_string (c->sock, str);