aboutsummaryrefslogtreecommitdiffstats
path: root/parseconfig.inc
diff options
context:
space:
mode:
Diffstat (limited to 'parseconfig.inc')
-rw-r--r--parseconfig.inc14
1 files changed, 11 insertions, 3 deletions
diff --git a/parseconfig.inc b/parseconfig.inc
index 34842d85..ebb74de1 100644
--- a/parseconfig.inc
+++ b/parseconfig.inc
@@ -22,8 +22,7 @@
;
pc_default: mov di,default_cmd
call getline
- xor al,al
- stosb ; null-terminate
+ mov byte [di-1],0 ; null-terminate
ret
;
@@ -31,11 +30,20 @@ pc_default: mov di,default_cmd
;
pc_ontimeout: mov di,Ontimeout
call getline
- sub di,Ontimeout
+ sub di,Ontimeout+1 ; Don't need final space
mov [OntimeoutLen],di
ret
;
+; "onerror" command
+;
+pc_onerror: mov di,Onerror
+ call getline
+ sub di,Onerror
+ mov [OnerrorLen],di
+ ret
+
+;
; "append" command
;
pc_append: cmp word [VKernelCtr],byte 0