Use PROCESS_NAME_STRING macro to handle NO_PROCESS_NAMES

This commit is contained in:
David Kopf 2011-08-03 11:08:40 -04:00
parent 6ec85fe079
commit 44f4ee9315
8 changed files with 13 additions and 15 deletions

View file

@ -269,7 +269,7 @@ make_processes(void *p)
static const char httpd_cgi_proc[] HTTPD_STRING_ATTR = "<tr align=\"center\"><td>%p</td><td>%s</td><td>%p</td><td>%s</td></tr>\r\n";
char name[40],tstate[20];
strncpy(name, ((struct process *)p)->name, 40);
strncpy(name, PROCESS_NAME_STRING((struct process *)p), 40);
petsciiconv_toascii(name, 40);
httpd_strcpy(tstate,states[9 + ((struct process *)p)->state]);
return httpd_snprintf((char *)uip_appdata, uip_mss(), httpd_cgi_proc, p, name,