Skip to content

[th/strdup-in-ascii-strdown] glib: use g_strdup() in g_ascii_strdown(),g_ascii_strup()

Thomas Haller requested to merge th/strdup-in-ascii-strdown into main

g_strndup() internally uses strncpy(), while g_strdup() uses memcpy(). Most likely, memcpy() is faster.

Instead of strlen()+g_strndup(), use g_strdup() as we don't need the length.

Merge request reports