[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH][pre1] Finally fix long filename/downloader issue
From: |
John Bley |
Subject: |
lynx-dev [PATCH][pre1] Finally fix long filename/downloader issue |
Date: |
Sat, 8 May 1999 03:00:15 -0400 (EDT) |
* Fix buffer problems with long filenames and custom DOWNLOADERs (John Bley)
Took a hint from code earlier in the file, this fixed up all my issues.
I'll recheck all the permutations after pre2.
--
John Bley - address@hidden
Duke '99 - English/Computer Science
Since English is a mess, it maps well onto the problem space,
which is also a mess, which we call reality. - Larry Wall
diff -Burp lynx2-8-2/src/LYDownload.c lynx2-8-2-patched/src/LYDownload.c
--- lynx2-8-2/src/LYDownload.c Wed May 5 20:33:59 1999
+++ lynx2-8-2-patched/src/LYDownload.c Sat May 8 02:51:40 1999
@@ -299,7 +299,7 @@ check_recall:
if (HTCountCommandArgs(download_command->command) >= 2) {
_statusline(FILENAME_PROMPT);
again: if (sug_file)
- strncpy(buffer, sug_file, sizeof(buffer));
+ strncpy(buffer, sug_file, (sizeof(buffer)/2) - 1);
else
*buffer = '\0';
check_again:
- lynx-dev [PATCH][pre1] Finally fix long filename/downloader issue,
John Bley <=