static void
expand_and_exec(char *cmd)
{
- GString * expanded_cmd = g_string_new("");
+ GString *expanded_cmd = g_string_new("");
for (int i=0; cmd[i]; i++)
{
if (cmd[i]=='%' && cmd[i+1]=='%')
if (cmd[i]=='%' && cmd[i+1]=='n')
{
i++;
- const gchar * name = gtk_entry_get_text(GTK_ENTRY(namebox));
+ const gchar *name = gtk_entry_get_text(GTK_ENTRY(namebox));
g_string_append(expanded_cmd, name);
}
else