diff options
| author | forsyth <forsyth@vitanuova.com> | 2009-08-30 16:19:16 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2009-08-30 16:19:16 +0100 |
| commit | de5ee5b4e75f9333ff45e09f77330033004165c8 (patch) | |
| tree | 1ae0e88eee96c142115900e9e8e0f384a7a10493 /appl/cmd/ed.b | |
| parent | 9cc6081ecb7a8f3f2cd63eaa9f6cd3df4f9fb801 (diff) | |
20090830-1619
Diffstat (limited to 'appl/cmd/ed.b')
| -rw-r--r-- | appl/cmd/ed.b | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appl/cmd/ed.b b/appl/cmd/ed.b index f0ad6310..8c051086 100644 --- a/appl/cmd/ed.b +++ b/appl/cmd/ed.b @@ -1314,7 +1314,7 @@ dosub() } if(c == ESCFLG && (c = rhsbuf[rp++]) >= '1' && c < MAXSUB+'0') { n = c-'0'; - if(subexp != nil && subexp[n].rsp >= 0 && subexp[n].rep >= 0) { + if(n < len subexp && subexp[n].rsp >= 0 && subexp[n].rep >= 0) { sp = place(sp, subexp[n].rsp, subexp[n].rep); continue; } |
