ref: b65b723fa6c3594555289c681c08e5c52eac21cd
parent: e05321356b68a1736d5d304bab0ee2bc4b39b7bf
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Aug 31 11:37:19 EDT 2020
Resolve #554: STRSUB("<N-char string>", N, 0) will not warn "Position N is past the end of the string"
--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -461,7 +461,7 @@
srcIndex++;
}
- if (!src[srcIndex])
+ if (!src[srcIndex] && len)
warning(WARNING_BUILTIN_ARG, "STRSUB: Position %lu is past the end of the string",
(unsigned long)pos);