Commit 48f7940198b531d1d984f06014e74962d6c96ca5

Thomas de Grivel 2024-08-16T12:32:32

wip asan

diff --git a/libkc3/str.c b/libkc3/str.c
index 8ff58d1..49df097 100644
--- a/libkc3/str.c
+++ b/libkc3/str.c
@@ -580,7 +580,7 @@ s_str * str_init_to_lower (s_str *str, const s_str *src)
     c = character_to_lower(c);
     buf_write_character_utf8(&buf, c);
   }
-  return buf_read_to_str(&buf, str);
+  return buf_to_str(&buf, str);
 }
 
 s_str * str_init_to_upper (s_str *str, const s_str *src)
@@ -597,7 +597,7 @@ s_str * str_init_to_upper (s_str *str, const s_str *src)
     c = character_to_upper(c);
     buf_write_character_utf8(&buf, c);
   }
-  return buf_read_to_str(&buf, str);
+  return buf_to_str(&buf, str);
 }
 
 DEF_STR_INIT_STRUCT(tuple)