--- dpkg-1.10.28/lib/mlib.c.old 2006-07-03 01:39:12.000000000 +0200 +++ dpkg-1.10.28/lib/mlib.c 2006-07-03 01:39:53.000000000 +0200 @@ -189,7 +189,9 @@ switch(data->type) { case BUFFER_WRITE_BUF: memcpy(data->data.ptr, buf, length); - (char*)data->data.ptr += length; + char* tmp; + tmp = (char*)data->data.ptr + length; + data->data.ptr = tmp; break; case BUFFER_WRITE_VBUF: varbufaddbuf((struct varbuf *)data->data.ptr, buf, length); --- dpkg-1.10.28/include/parsedump.h.old 2006-07-03 01:38:08.000000000 +0200 +++ dpkg-1.10.28/include/parsedump.h 2006-07-03 01:38:49.000000000 +0200 @@ -30,7 +30,6 @@ const char *canon; }; -extern const struct fieldinfo fieldinfos[]; extern const struct nickname nicknames[]; extern const int nfields; /* = elements in fieldinfos, including the sentinels */ @@ -68,6 +67,8 @@ unsigned int integer; }; +extern const struct fieldinfo fieldinfos[]; + void parseerr(FILE *file, const char *filename, int lno, FILE *warnto, int *warncount, const struct pkginfo *pigp, int warnonly, const char *fmt, ...) PRINTFFORMAT(8,9);