mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Applied patch from John Ellson <ellson@lucent.com> closing #1646, Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jul 12 12:36:39 CEST 1999 Daniel Veillard <Daniel.Veillard@w3.org>
|
||||||
|
|
||||||
|
* parser.c, HTMLparser.c: applied patch from John Ellson <ellson@lucent.com>
|
||||||
|
closing bug #1646
|
||||||
|
|
||||||
Mon Jul 12 11:04:44 CEST 1999 Daniel Veillard <Daniel.Veillard@w3.org>
|
Mon Jul 12 11:04:44 CEST 1999 Daniel Veillard <Daniel.Veillard@w3.org>
|
||||||
|
|
||||||
* Makefile.am, example/Makefile.am: closed bug #1683
|
* Makefile.am, example/Makefile.am: closed bug #1683
|
||||||
|
@ -2642,11 +2642,7 @@ htmlCreateFileParserCtxt(const char *filename, const char *encoding)
|
|||||||
}
|
}
|
||||||
|
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
#ifdef HAVE_ZLIB_H
|
|
||||||
while(!gzeof(input)) {
|
|
||||||
#else
|
|
||||||
while(1) {
|
while(1) {
|
||||||
#endif
|
|
||||||
if (cnt == len) {
|
if (cnt == len) {
|
||||||
len *= 2;
|
len *= 2;
|
||||||
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));
|
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));
|
||||||
|
8
parser.c
8
parser.c
@ -328,11 +328,7 @@ xmlNewInputFromFile(xmlParserCtxtPtr ctxt, const char *filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
#ifdef HAVE_ZLIB_H
|
|
||||||
while(!gzeof(input)) {
|
|
||||||
#else
|
|
||||||
while(1) {
|
while(1) {
|
||||||
#endif
|
|
||||||
if (cnt >= len) {
|
if (cnt >= len) {
|
||||||
len *= 2;
|
len *= 2;
|
||||||
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));
|
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));
|
||||||
@ -4695,11 +4691,7 @@ xmlCreateFileParserCtxt(const char *filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
#ifdef HAVE_ZLIB_H
|
|
||||||
while(!gzeof(input)) {
|
|
||||||
#else
|
|
||||||
while(1) {
|
while(1) {
|
||||||
#endif
|
|
||||||
if (cnt == len) {
|
if (cnt == len) {
|
||||||
len *= 2;
|
len *= 2;
|
||||||
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));
|
nbuf = (char *)realloc(buffer,(len+1)*sizeof(char));
|
||||||
|
Reference in New Issue
Block a user