link_alt_odb_entries(): use string_list_split_in_place()
commit6eac50d8274ef0acbbaec4f79e2876405ba8dcee
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 5 Nov 2012 08:41:22 +0000 (5 09:41 +0100)
committerJeff King <peff@peff.net>
Thu, 8 Nov 2012 17:06:53 +0000 (8 12:06 -0500)
treebbcebc4a9a9a71e8e7058d79b144e3e0389e92ca
parentf07e5551a845b45076bf5c45118e16efa69610c4
link_alt_odb_entries(): use string_list_split_in_place()

Change link_alt_odb_entry() to take a NUL-terminated string instead of
(char *, len).  Use string_list_split_in_place() rather than inline
code in link_alt_odb_entries().

This approach saves some code and also avoids the (probably harmless)
error of passing a non-NUL-terminated string to is_absolute_path().

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
sha1_file.c