if (pw_name)
{
memset(pw_name, 0, strlen(pwent->pw_name)+1);
- strncpy(pw_name, pwent->pw_name, strlen(pwent->pw_name));
+ memcpy(pw_name, pwent->pw_name, strlen(pwent->pw_name));
}
}
if (pw_dir)
{
memset(pw_dir, 0, strlen(pwent->pw_dir)+1);
- strncpy(pw_dir, pwent->pw_dir, strlen(pwent->pw_dir));
+ memcpy(pw_dir, pwent->pw_dir, strlen(pwent->pw_dir));
}
}
if (pw_shell)
{
memset(pw_shell, 0, strlen(pwent->pw_shell)+1);
- strncpy(pw_shell, pwent->pw_shell, strlen(pwent->pw_shell));
+ memcpy(pw_shell, pwent->pw_shell, strlen(pwent->pw_shell));
}
}
}
GList *
-tlm_utils_split_command_lines (const GList const *commands_list) {
+tlm_utils_split_command_lines (const GList *commands_list) {
const gchar *pattern = "('.*?'|\".*?\"|\\S+)";
GError *error = NULL;
GRegex *regex = NULL;
tlm_utils_split_command_line (const gchar *command);
GList *
-tlm_utils_split_command_lines (const GList const *commands_list);
+tlm_utils_split_command_lines (const GList *commands_list);
typedef void (*WatchCb) (const gchar *found_item, gboolean is_final, GError *error, gpointer userdata);