httpd_indexcgi example: trivial fix
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 15 Apr 2010 15:37:59 +0000 (08:37 -0700)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 15 Apr 2010 15:37:59 +0000 (08:37 -0700)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd_indexcgi.c

index 9fa7c74812b743adb474ebfd027fbb91ff6ca9ba..af4338006e431a522503e57a0a45389cb0347bd0 100644 (file)
@@ -315,7 +315,7 @@ int main(int argc, char *argv[])
                if (S_ISREG(cdir->dl_mode))
                        fmt_ull(cdir->dl_size);
                fmt_str("<td class=dt>");
-               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++ = ' ';