clarification: get_info() returns const char *

This commit is contained in:
marschap committed 2006-04-12 08:12:13 +00:00
1 parent e558530d02
commit 587085a292
19 files changed
+24 -23

No files matched your search

+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);