From 03b672db110712438c48ce71d4c744c57b9afd90 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 10 May 2004 09:34:27 +0000 Subject: [PATCH] Fixed compiler warning SVN revision: 871 --- src/elogd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index a738f0e1..65841ac8 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.323 2004/05/10 09:34:27 midas + Fixed compiler warning + Revision 1.322 2004/05/08 15:02:01 midas Fixed bug with remove _all_ leading to infinite page forwarding @@ -4900,7 +4903,7 @@ void set_location(LOGBOOK * lbs, char *rel_path) /* if HTTP request comes from localhost, use localhost as absolute link (needed if running on DSL at home */ if (!str[0] && strstr(http_host, "localhost")) { - sprintf(str, "http://localhost", host_name); + strcpy(str, "http://localhost"); if (tcp_port != 80) sprintf(str+strlen(str), ":%d", tcp_port); strcat(str, "/");