From c2d413ba74bd140043da80c9418c6be96056afb2 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 15 Apr 2010 08:37:59 -0700 Subject: httpd_indexcgi example: trivial fix Signed-off-by: Denys Vlasenko --- networking/httpd_indexcgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking') diff --git a/networking/httpd_indexcgi.c b/networking/httpd_indexcgi.c index 9fa7c74..af43380 100644 --- a/networking/httpd_indexcgi.c +++ b/networking/httpd_indexcgi.c @@ -315,7 +315,7 @@ int main(int argc, char *argv[]) if (S_ISREG(cdir->dl_mode)) fmt_ull(cdir->dl_size); fmt_str(""); - tm = gmtime(&cdir->dl_mtime); + ptm = gmtime(&cdir->dl_mtime); fmt_04u(1900 + ptm->tm_year); *dst++ = '-'; fmt_02u(ptm->tm_mon + 1); *dst++ = '-'; fmt_02u(ptm->tm_mday); *dst++ = ' '; -- cgit v1.1