diff --git a/Makefile b/Makefile index 7de4bbedbd5fdefd33593d7251a0b8c9c5f8489a..199cc47cf1af56659a86373d3517585c83d02c5f 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ all: # Define USE_STDEV below if you want git to care about the underlying device # change being considered an inode change from the update-cache perspective. -GIT_VERSION = 1.0.0a +GIT_VERSION = 1.0.0b # CFLAGS and LDFLAGS are for the users to override from the command line. diff --git a/debian/changelog b/debian/changelog index adebba50bb680d1af796242bed0bb8c6f14cc4bd..8dc86c55c5b6f9be5f1a1e228e010b58f28c53ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +git-core (1.0.0b-0) unstable; urgency=low + + * GIT 1.0.0b to include two more fixes. + + -- Junio C Hamano Wed, 21 Dec 2005 13:50:21 -0800 + git-core (1.0.0a-0) unstable; urgency=low * GIT 1.0.0a to include the following fixes: diff --git a/quote.c b/quote.c index 76eb14426581f03d0b15ee4eb720456a0729d1bc..7218a7080d9a4282530b58c013606c86e4a5fdf5 100644 --- a/quote.c +++ b/quote.c @@ -126,8 +126,10 @@ static int quote_c_style_counted(const char *name, int namelen, if (!no_dq) EMIT('"'); - for (sp = name; (ch = *sp++) && (sp - name) <= namelen; ) { - + for (sp = name; sp < name + namelen; sp++) { + ch = *sp; + if (!ch) + break; if ((ch < ' ') || (ch == '"') || (ch == '\\') || (ch == 0177)) { needquote = 1; diff --git a/server-info.c b/server-info.c index 6089765941f36712ec6ee54e5b1492b8c707917b..05bce7da3b4935675465f993c24bb1188439d6d9 100644 --- a/server-info.c +++ b/server-info.c @@ -99,7 +99,10 @@ static int read_pack_info_file(const char *infofile) while (fgets(line, sizeof(line), fp)) { int len = strlen(line); if (line[len-1] == '\n') - line[len-1] = 0; + line[--len] = 0; + + if (!len) + continue; switch (line[0]) { case 'P': /* P name */