Merge branch 'master' of git://github.com/git-l10n/git-po
[gitweb.git] / pkt-line.c
index 647bbd3bceda71f15fdf137a37f3fa53e6fa6d86..93ea311443a37b81b85a72dc569c715417d7ef29 100644 (file)
@@ -258,7 +258,7 @@ static int get_packet_data(int fd, char **src_buf, size_t *src_size,
        }
 
        /* And complain if we didn't get enough bytes to satisfy the read. */
-       if (ret < size) {
+       if (ret != size) {
                if (options & PACKET_READ_GENTLE_ON_EOF)
                        return -1;