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
- From: Kenji Miyake <kenji@xxxxxxxxxx>
- Date: Fri, 04 Jan 2002 04:17:51 +0900
- X-ml-name: namazu-devel-ja
- X-mail-count: 02256
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);
}