Re: ipw srcipts for hal



yelo_3 wrote:
instead of using sprintf you should use
#include <glib.h>
char* path = g_strconcat("/sys/class/net/", iface, "/device/rf_kill", NULL);
[...]
g_free(path);
didn't want to make hal depend on glib but it seems that it does this anyway so I will use this or g_strdup_printf()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]