fix to a bug detected by random testing
svn: r18586
This commit is contained in:
parent
23d16b904f
commit
ff10493a0e
|
@ -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]])
|
||||
|
|
Loading…
Reference in New Issue
Block a user