]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/id3/id3.factor
sequences: bound -> index-or-length
[factor.git] / extra / id3 / id3.factor
index 2e81717d3c6e71b880f19be5e90fda540d9d79dc..17d79abf51fc73b31487e7904be51ba5b89c58ca 100644 (file)
@@ -116,7 +116,7 @@ CONSTANT: id3v1+-length 227
     [ 10 over size>> 10 + ] dip <slice> filter-text-data ;
 
 : decode-text ( string -- string' )
-    dup 2 bound head
+    dup 2 index-or-length head
     { { 0xff 0xfe } { 0xfe 0xff } } member?
     utf16 ascii ? decode ;