about summary refs log tree commit diff stats
path: root/src/LYUtils.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2013-05-03 23:53:30 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2013-05-03 23:53:30 -0400
commit398cc2f5cbd84d35293b2a4cd68c73fe854fbddb (patch)
treec8bb658b5538d7f91e75aca69c834902fb254129 /src/LYUtils.c
parent844a17014bd45706a13ee5318b36a56fbcf6924c (diff)
downloadlynx-snapshots-398cc2f5cbd84d35293b2a4cd68c73fe854fbddb.tar.gz
snapshot of project "lynx", label v2-8-8dev_15d
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r--src/LYUtils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c
index e378e4b7..51fd6526 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYUtils.c,v 1.237 2013/05/02 11:00:14 tom Exp $
+ * $LynxId: LYUtils.c,v 1.238 2013/05/03 20:21:20 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTCP.h>
@@ -1473,7 +1473,7 @@ void statusline(const char *text)
 	len = (int) strlen(text_buff);
 	if (len >= (int) (sizeof(buffer) - 1))
 	    len = (int) (sizeof(buffer) - 1);
-	StrNCpy(buffer, text_buff, len)[len] = '\0';
+	LYStrNCpy(buffer, text_buff, len);
 	/* FIXME: a binary search might be faster */
 	while (len > 0 && LYstrExtent(buffer, len, len) > max_length)
 	    buffer[--len] = '\0';