Namazu-devel-ja(旧)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot build namazu-2.0.10 where snprintf not exist



 namazu-2.0.10でsnprintfがない環境(ex: Solaris2.5.1)でmakeできなくなっています。

--- ./src/output.c.org	Tue Dec 25 15:11:06 2001
+++ ./src/output.c	Mon Dec 31 05:29:09 2001
@@ -675,7 +675,7 @@
 {
     char *errmsg = nmz_strerror(errid);
     char buf[BUFSIZE];
-    snprintf(buf, BUFSIZE - 1, _("	<h2>Error!</h2>\n<p>%s</p>\n"), errmsg);
+    vsnprintf(buf, BUFSIZE - 1, _("	<h2>Error!</h2>\n<p>%s</p>\n"), errmsg);
     html_print(buf);
 }