$Log$
+Revision 1.421 1999/11/22 00:27:42 ajc
+* Added some temporary variables to OpenCmdResult(). Hopefully fixes
+ bug #14 when running on FreeBSD.
+
Revision 1.420 1999/11/21 18:30:16 ajc
* Protected cmd_move() from buffer overrun (no longer crashes the server)
* cmd_chat() -- truncate input at 100 characters to prevent buffer overruns.
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
-
*/
void OpenCmdResult(char *filename, char *mime_type) {
struct stat statbuf;
+ time_t modtime;
+ long filesize;
fstat(fileno(CC->download_fp), &statbuf);
- cprintf("%d %ld|%ld|%s|%s\n", OK, statbuf.st_size, statbuf.st_mtime,
- filename, mime_type);
- }
+ filesize = (long) statbuf.st_size;
+ modtime = (time_t) statbuf.st_mtime;
+
+ cprintf("%d %ld|%ld|%s|%s\n",
+ OK, filesize, modtime, filename, mime_type);
+}
/*