From 2474b5f3f592736b97b292b8ba0e839eb7bdf267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 28 Apr 2016 23:25:29 +0200 Subject: [PATCH] calc: fix usage of (substring) --- plugins/zyklonb/calc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/zyklonb/calc b/plugins/zyklonb/calc index deea424..1df0596 100755 --- a/plugins/zyklonb/calc +++ b/plugins/zyklonb/calc @@ -89,7 +89,7 @@ (let ([s-len (string-length s)] [with-len (string-length start)]) (and (>= s-len with-len) (string=? (substring s 0 with-len) start) - (substring s with-len)))) + (substring s with-len s-len)))) ; --- Calculator ---------------------------------------------------------------