*/
#include <glob.h>
+#include <string.h>
#include <glib.h>
if(!glob(serial_port_glob[i], 0, NULL, &g))
{
for(j = 0; j < g.gl_pathc; j++)
- ports = g_slist_append(ports, g_strdup(g.gl_pathv[j]));
+ ports = g_slist_append(ports, strdup(g.gl_pathv[j]));
globfree(&g);
}
}