mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-19 12:10:19 +00:00
fix(fe-text): replace strdup with g_strdup for C17 builds
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include <glib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -538,7 +538,7 @@ fe_args (int argc, char *argv[])
|
|||||||
if (arg_cfgdir) /* we want filesystem encoding */
|
if (arg_cfgdir) /* we want filesystem encoding */
|
||||||
{
|
{
|
||||||
g_free (xdir);
|
g_free (xdir);
|
||||||
xdir = strdup (arg_cfgdir);
|
xdir = g_strdup(arg_cfgdir);
|
||||||
if (xdir[strlen (xdir) - 1] == '/')
|
if (xdir[strlen (xdir) - 1] == '/')
|
||||||
xdir[strlen (xdir) - 1] = 0;
|
xdir[strlen (xdir) - 1] = 0;
|
||||||
g_free (arg_cfgdir);
|
g_free (arg_cfgdir);
|
||||||
|
|||||||
Reference in New Issue
Block a user