[xiph-commits] r8202 - icecast/trunk/icecast/src

oddsock at motherfish-iii.xiph.org oddsock at motherfish-iii.xiph.org
Mon Nov 15 07:55:43 PST 2004


Author: oddsock
Date: 2004-11-15 07:55:43 -0800 (Mon, 15 Nov 2004)
New Revision: 8202

Modified:
   icecast/trunk/icecast/src/fserve.c
Log:
darn ansi C.....


Modified: icecast/trunk/icecast/src/fserve.c
===================================================================
--- icecast/trunk/icecast/src/fserve.c	2004-11-15 15:50:59 UTC (rev 8201)
+++ icecast/trunk/icecast/src/fserve.c	2004-11-15 15:55:43 UTC (rev 8202)
@@ -431,12 +431,12 @@
                 char currenttime[50];
                 time_t now;
                 int strflen;
-                time(&now);
                 struct tm result;
                 int64_t endpos = rangenumber+new_content_len-1;
                 if (endpos < 0) {
                     endpos = 0;
                 }
+                time(&now);
                 strflen = strftime(currenttime, 50, "%a, %d-%b-%Y %X GMT",
                                    gmtime_r(&now, &result));
                 httpclient->respcode = 206;



More information about the commits mailing list