From 7eb83900f4aa20c8e2e7adff5234eac3c3e11b48 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 13 Oct 2005 19:45:26 +0000 Subject: [PATCH] Fixed problem with [URL="file://...] SVN revision: 1514 --- src/elogd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index bdefd140..4d8b091b 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -11,7 +11,7 @@ /* Version of ELOG */ #define VERSION "2.6.0-beta5" -char cvs_revision[] = "$Id$"; +char svn_revision[] = "$Id$"; /* ELOG identification */ static const char ELOGID[] = "elogd " VERSION " built " __DATE__ ", " __TIME__; @@ -5430,7 +5430,7 @@ void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str) else sprintf(hattrib, "%s", attrib + 5); - } else if (strncmp(attrib, "http://", 7) != 0) /* add http:// if missing */ + } else if (strstr(attrib, "://", 7) == 0) /* add http:// if missing */ sprintf(hattrib, "http://%s", attrib); else strlcpy(hattrib, attrib, sizeof(hattrib)); @@ -22377,7 +22377,7 @@ void server_loop(void) /* about to entering the server loop, welcome user with a brief info */ eprintf("%s ", ELOGID); - strcpy(str, cvs_revision + 15); + strcpy(str, svn_revision + 13); if (strchr(str, ' ')) *strchr(str, ' ') = 0; eprintf("revision %s\n", str);