mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-30 06:35:39 +00:00
fix(fe-text): replace strdup with g_strdup for C17 builds
This commit is contained in:
1 parent
dc76c2ea37
commit
b960f62d2a
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user