fix to a bug detected by random testing

svn: r18586
This commit is contained in:
Robby Findler 2010-03-19 19:55:02 +00:00
parent 23d16b904f
commit ff10493a0e

View File

@ -242,7 +242,7 @@
(if (not str)
(for ([i (in-range num)])
(string-set! s i #\.))
(string-copy! s 0 str 0 num)))))
(string-copy! s 0 str 0 (min num (string-length str) (string-length s)))))))
(def/public (get-text [exact-nonnegative-integer? offset] [exact-integer? num]
[any? [flattened? #f]])