X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=convert-objects.c;h=cf03bcfe5aa4f95ec4b6384bc38d63b1e453f731;hb=e4aee10a2eaf0937d86d046f85ee569a75cae9ac;hp=4809f9199fa21dcd95ab508e26196080d49e8e88;hpb=803527f1d9b284fa848d4a4bad23158c162a5d54;p=git.git diff --git a/convert-objects.c b/convert-objects.c index 4809f9199..cf03bcfe5 100644 --- a/convert-objects.c +++ b/convert-objects.c @@ -88,7 +88,7 @@ static int write_subdirectory(void *buffer, unsigned long size, const char *base unsigned int mode; char *slash, *origpath; - if (!path || sscanf(buffer, "%o", &mode) != 1) + if (!path || strtoul_ui(buffer, 8, &mode) != 1) die("bad tree conversion"); mode = convert_mode(mode); path++;