about summary refs log tree commit diff stats
path: root/src/HTAlert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTAlert.c')
-rw-r--r--src/HTAlert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HTAlert.c b/src/HTAlert.c
index 40d3c3d5..a3a902c2 100644
--- a/src/HTAlert.c
+++ b/src/HTAlert.c
@@ -261,11 +261,11 @@ PUBLIC char * HTPrompt ARGS2(
     char Tmp[200];
 
     Tmp[0] = '\0';
-    Tmp[199] = '\0';
+    Tmp[sizeof(Tmp)-1] = '\0';
 
     _statusline(Msg);
     if (deflt)
-	strncpy(Tmp, deflt, 199);
+	strncpy(Tmp, deflt, sizeof(Tmp)-1);
 
     if (!dump_output_immediately)
 	LYgetstr(Tmp, VISIBLE, sizeof(Tmp), NORECALL);