fix(eas): avoid doing bogus truncation

pull/272/head
Ludovic Marcotte 2020-05-14 15:46:55 -04:00
parent b53d1254d9
commit 96986280ee
1 changed files with 2 additions and 1 deletions

View File

@ -772,7 +772,8 @@ struct GlobalObjectId {
}
}
return [theContent substringToIndex: i];
if (i >= 0)
return [theContent substringToIndex: i];
}
*wasTruncated = 0;