about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTFile.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-11-04 02:46:35 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-11-04 02:46:35 -0500
commit0f88481e93b50612489cc8e5b1ca365196439373 (patch)
treee56049a7eac3b450ab323c1037e1bf8c02f6b306 /WWW/Library/Implementation/HTFile.c
parent2d161b7d97cebd6f38885cf69933291fec6b4381 (diff)
downloadlynx-snapshots-0f88481e93b50612489cc8e5b1ca365196439373.tar.gz
snapshot of project "lynx", label v2-8-3dev_14
Diffstat (limited to 'WWW/Library/Implementation/HTFile.c')
-rw-r--r--WWW/Library/Implementation/HTFile.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c
index cd8bcdab..b5ad32af 100644
--- a/WWW/Library/Implementation/HTFile.c
+++ b/WWW/Library/Implementation/HTFile.c
@@ -161,8 +161,10 @@ PRIVATE char *FormatStr ARGS3(
     if (*start) {
 	sprintf(fmt, "%%%.*ss", (int) sizeof(fmt) - 3, start);
 	HTSprintf0(bufp, fmt, entry);
-    } else {
-	HTSprintf0(bufp, "%s", entry);
+    } else if (*bufp && !(entry && *entry)) {
+	**bufp = '\0';
+    } else if (entry) {
+	StrAllocCopy(*bufp, entry);
     }
     return *bufp;
 }
@@ -178,7 +180,7 @@ PRIVATE char *FormatNum ARGS3(
 	HTSprintf0(bufp, fmt, entry);
     } else {
 	sprintf(fmt, "%d", entry);
-	StrAllocCat(*bufp, fmt);
+	StrAllocCopy(*bufp, fmt);
     }
     return *bufp;
 }
@@ -1127,7 +1129,7 @@ PUBLIC void LYGetFileInfo ARGS7(
 	HTFormat format;
 	HTAtom * myEnc = NULL;
 	HTParentAnchor *file_anchor;
-	CONST char *file_csname = file_anchor->charset;
+	CONST char *file_csname;
 	int file_cs;
 
 	/*
@@ -1815,7 +1817,7 @@ PRIVATE int print_local_dir ARGS5(
 #ifndef DISP_PARTIAL
 		if (num_of_entries_output % HTMAX(display_lines,10) == 0) {
 		    if (HTCheckForInterrupt()) {
-			_HTProgress ("Data transfer interrupted.");
+			_HTProgress (TRANSFER_INTERRUPTED);
 			status = HT_PARTIAL_CONTENT;
 			break;
 		    }