#include <sys/inotify.h>
#include <syslog.h>
-#include <glib.h>
-
#include "polkit-sysdeps.h"
#include "polkit-private.h"
size_t length;
polkit_uint64_t start_time;
char **tokens;
+ size_t num_tokens;
char *p;
char *endp;
goto out;
}
- tokens = g_strsplit (p, " ", 0);
- if (g_strv_length (tokens) < 20) {
+ tokens = kit_strsplit (p, ' ', &num_tokens);
+ if (tokens == NULL)
+ goto out;
+
+ if (num_tokens < 20) {
goto out;
}
goto out;
}
- g_strfreev (tokens);
+ kit_strfreev (tokens);
out:
kit_free (filename);