From: Wichert Akkerman Date: Sat, 21 Apr 2001 22:49:56 +0000 (+0000) Subject: Fix weird pointer usage X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80a3b333698da85c81de68c9d3a19c0f914048f5;p=dpkg Fix weird pointer usage --- diff --git a/ChangeLog b/ChangeLog index a1bb544b..c6ffde49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Apr 22 00:48:18 CEST 2001 Wichert Akkerman + + * main/main.c: fixed some bizar pointer usage + Sun Apr 22 00:33:26 CEST 2001 Wichert Akkerman * Makefile.conf.in: remove no longer used warning flags diff --git a/main/main.c b/main/main.c index a4ea3711..7f107dfe 100644 --- a/main/main.c +++ b/main/main.c @@ -472,7 +472,7 @@ printf("line=`%*s'\n",linevb.used,linevb.buf); endptr= ptr + linevb.used; while(ptr < endptr) { if (*ptr == '\\') { - memmove(ptr, ++ptr, linevb.used - (linevb.buf - ptr)); + memmove(ptr, (ptr+1), (linevb.used-(linevb.buf - ptr)-1)); continue; } else if (isspace(*ptr)) { if (mode == 1) {