buf = (char *) PR_MALLOC (PL_strlen (prefix) + PL_strlen (suffix) + PL_strlen (url) + 20);
buf = (char *) PR_MALLOC (nsCRT::strlen (prefix) + nsCRT::strlen (suffix) + nsCRT::strlen (url) + 20);
test_image_make_image_html(void *image_data){  char *url = (char *) image_data;#if 0  const char *prefix = "<P><CENTER><IMG SRC=\"";  const char *suffix = "\"></CENTER><P>";#else  const char *prefix = ("<P><CENTER><TABLE BORDER=2 CELLPADDING=20"						" BGCOLOR=WHITE>"						"<TR><TD ALIGN=CENTER>"						"an inlined image would have gone here for<BR>");  const char *suffix = "</TD></TR></TABLE></CENTER><P>";#endif  char *buf;  buf = (char *) PR_MALLOC (PL_strlen (prefix) + PL_strlen (suffix) +						   PL_strlen (url) + 20);  if (!buf) return 0;  *buf = 0;  PL_strcat (buf, prefix);  PL_strcat (buf, url);  PL_strcat (buf, suffix);  return buf;}