summaryrefslogtreecommitdiff
path: root/nanoftp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-11-12 15:56:56 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-11-12 15:56:56 +0000
commitbf43275dd1e31ee7542c37f1f7ce21e0ee9218ee (patch)
treea7922d9afb91ba81da63417c9437c126a2ad3252 /nanoftp.c
parentc2def84b484f6706c2ad7d076a2f3e1c56f76b9f (diff)
downloadlibxml2-bf43275dd1e31ee7542c37f1f7ce21e0ee9218ee.tar.gz
Bug fixes new Xinclude tests:
- nanoftp.c: fixed gcc 2.95 new warnings - SAX.c: fixed a stupid bug - tree.c: fixed a formatting problem when round-tripping from/to memory - xinclude.c: chased memleak, fixed a base problem - xpointer.c: added xmlXPtrBuildRangeNodeList(), finished ? xmlXPtrBuildNodeList() - TODO: updated - Makefile.am test/XInclude/docs test/XInclude/ents result/XInclude: adding a first small set of regression tests for XInclude Daniel
Diffstat (limited to 'nanoftp.c')
-rw-r--r--nanoftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nanoftp.c b/nanoftp.c
index c5e7acb7..12073557 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -1310,7 +1310,7 @@ xmlNanoFTPGetConnection(void *ctx) {
}
cur = &ctxt->controlBuf[ctxt->controlBufAnswer];
while (((*cur < '0') || (*cur > '9')) && *cur != '\0') cur++;
- if (sscanf(cur, "%d,%d,%d,%d,%d,%d", &temp[0], &temp[1], &temp[2],
+ if (sscanf(cur, "%u,%u,%u,%u,%u,%u", &temp[0], &temp[1], &temp[2],
&temp[3], &temp[4], &temp[5]) != 6) {
xmlGenericError(xmlGenericErrorContext,
"Invalid answer to PASV\n");