about summary refs log tree commit diff stats
path: root/src/LYMainLoop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYMainLoop.c')
-rw-r--r--src/LYMainLoop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index 5521ed6b..481685b8 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMainLoop.c,v 1.215 2013/04/30 22:39:19 tom Exp $
+ * $LynxId: LYMainLoop.c,v 1.216 2013/05/03 20:29:37 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAccess.h>
@@ -7262,8 +7262,7 @@ int mainloop(void)
 		    len = MAX_LINE;	/* Required for do_check_goto_URL() */
 		buf = typeMallocn(char, len);
 
-		StrNCpy(buf, (const char *) s, (e - s));
-		buf[e - s] = '\0';
+		LYStrNCpy(buf, (const char *) s, (e - s));
 		t = (unsigned char *) buf;
 
 		while (s < e) {