fix(fe-text): replace strdup with g_strdup for C17 builds

This commit is contained in:
2026-01-26 18:12:49 -07:00
parent dc76c2ea37
commit b960f62d2a

View File

@@ -17,7 +17,7 @@
*/
#include "config.h"
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -538,7 +538,7 @@ fe_args (int argc, char *argv[])
if (arg_cfgdir) /* we want filesystem encoding */
{
g_free (xdir);
xdir = strdup (arg_cfgdir);
xdir = g_strdup(arg_cfgdir);
if (xdir[strlen (xdir) - 1] == '/')
xdir[strlen (xdir) - 1] = 0;
g_free (arg_cfgdir);