X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=convert-objects.c;h=cefbcebdcaa0a085745c81b2ed1103e9575cb635;hb=f02153696fc319c3c6dba2c27a5f7aed98eec465;hp=4809f9199fa21dcd95ab508e26196080d49e8e88;hpb=803527f1d9b284fa848d4a4bad23158c162a5d54;p=git.git diff --git a/convert-objects.c b/convert-objects.c index 4809f9199..cefbcebdc 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)) die("bad tree conversion"); mode = convert_mode(mode); path++;