Mercurial > hg > Members > kono > nitros9-code
changeset 3062:ae77b55c1414
sdir: fixed off by one error when null terminating parameter string
author | tlindner |
---|---|
date | Sun, 08 Feb 2015 15:39:29 -0800 |
parents | 102fe4086f0c |
children | c0bb75b72339 |
files | 3rdparty/utils/tlindner/sdir.asm |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/3rdparty/utils/tlindner/sdir.asm Sun Feb 08 12:17:37 2015 -0800 +++ b/3rdparty/utils/tlindner/sdir.asm Sun Feb 08 15:39:29 2015 -0800 @@ -21,7 +21,6 @@ * Here are some tweakable options -DOHELP set 0 1 = include help info STACKSZ set 32 estimated stack size in bytes PARMSZ set 256 estimated parameter size in bytes @@ -299,7 +298,7 @@ cmpd #1 beq use_base_path * check for prefix on user supplied parameter string - clr ,y place null at end of parameter area + clr -1,y place null at end of parameter area subb #1 sbca #0 decrement reg d tfr d,y store parameter length in reg y