diff --git a/builtin/shortlog.c b/builtin/shortlog.c
index 5089502800d5f477f47b6cd6499d278097f11e67..0a9681ba7ece52e751b1b54d53f3e8fb4c19464e 100644 (file)
--- a/builtin/shortlog.c
+++ b/builtin/shortlog.c
snprintf(namebuf + len, room, " <%.*s>", maillen, emailbuf);
}
snprintf(namebuf + len, room, " <%.*s>", maillen, emailbuf);
}
- item = string_list_insert(namebuf, &log->list);
+ item = string_list_insert(&log->list, namebuf);
if (item->util == NULL)
item->util = xcalloc(1, sizeof(struct string_list));
if (item->util == NULL)
item->util = xcalloc(1, sizeof(struct string_list));
}
}
}
}
- string_list_append(buffer, item->util);
+ string_list_append(item->util, buffer);
}
static void read_from_stdin(struct shortlog *log)
}
static void read_from_stdin(struct shortlog *log)