diff --git a/libgettext-ocaml/gettextMo_int32.ml b/libgettext-ocaml/gettextMo_int32.ml index 7490a3e..97c7c82 100644 --- a/libgettext-ocaml/gettextMo_int32.ml +++ b/libgettext-ocaml/gettextMo_int32.ml @@ -104,11 +104,11 @@ let input_int32_pair_string chn endian = (Int32.to_int length,Int32.to_int offset) in if 0 <= ioffset + ilength && ioffset + ilength < in_channel_length chn then - let str = String.make ilength 'X' + let str = Bytes.make ilength 'X' in seek_in chn ioffset; really_input chn str 0 ilength; - str + Bytes.to_string str else (* We use this exception, because that what should happen if we try to read the string *)