Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sha1_file.c: mark strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Feb 27, 2016
1 parent 13e0b0d commit 7465feb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sha1_file.c
Expand Up @@ -1042,7 +1042,7 @@ unsigned char *use_pack(struct packed_git *p,
if (offset > (p->pack_size - 20))
die("offset beyond end of packfile (truncated pack?)");
if (offset < 0)
die("offset before end of packfile (broken .idx?)");
die(_("offset before end of packfile (broken .idx?)"));

if (!win || !in_window(win, offset)) {
if (win)
Expand Down Expand Up @@ -2367,11 +2367,11 @@ void check_pack_index_ptr(const struct packed_git *p, const void *vptr)
const unsigned char *start = p->index_data;
const unsigned char *end = start + p->index_size;
if (ptr < start)
die("offset before start of pack index for %s (corrupt index?)",
die(_("offset before start of pack index for %s (corrupt index?)"),
p->pack_name);
/* No need to check for underflow; .idx files must be at least 8 bytes */
if (ptr >= end - 8)
die("offset beyond end of pack index for %s (truncated index?)",
die(_("offset beyond end of pack index for %s (truncated index?)"),
p->pack_name);
}

Expand Down

0 comments on commit 7465feb

Please sign in to comment.