Browse code

print version information to stdin instead of stderr

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1030 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/10/21 05:42:22
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Wed Oct 20 22:37:24 CEST 2004 (tk)
2
+----------------------------------
3
+  * shared/misc.c: print version information to stdin instead of stderr
4
+		   (reported by spaze <spaze*exploited.cz>)
5
+		   
1 6
 Wed Oct 20 22:31:10 CEST 2004 (tk)
2 7
 ----------------------------------
3 8
   * docs/MacOSX: update (Dale Enterprise L.L.C)
... ...
@@ -84,10 +84,10 @@ void print_version(void)
84 84
 
85 85
     if((daily = cl_cvdhead(path))) {
86 86
 	    time_t t = (time_t) daily->stime;
87
-	mprintf("ClamAV "VERSION"/%d/%s", daily->version, ctime(&t));
87
+	printf("ClamAV "VERSION"/%d/%s", daily->version, ctime(&t));
88 88
 	cl_cvdfree(daily);
89 89
     } else {
90
-	mprintf("ClamAV "VERSION"\n");
90
+	printf("ClamAV "VERSION"\n");
91 91
     }
92 92
 
93 93
     free(path);