+Sat Feb 27 07:47:36 EST 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * rooms.c: download_to_local_disk() prompts for a filename if a blank
+ filename was supplied to it (for attachments without names)
+
1999-02-24 Nathan Bryant <bryant@cs.usm.maine.edu>
* configure.in: improved check for pthreads
* configure.in, routines.c, acconfig.h: check for ut_type in struct utmp
* the [XYZ]modem code below...
* (This function assumes that a download file is already open on the server)
*/
-void download_to_local_disk(char *filename, long total_bytes)
+void download_to_local_disk(char *supplied_filename, long total_bytes)
{
char buf[256];
char dbuf[4096];
FILE *savefp;
int broken = 0;
int packet;
+ char filename[256];
+
+ strcpy(filename, supplied_filename);
+ if (strlen(filename)==0) {
+ newprompt("Filename: ", filename, 250);
+ }
printf("Enter the name of the directory to save '%s'\n",
filename);