From 80a3b333698da85c81de68c9d3a19c0f914048f5 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Sat, 21 Apr 2001 22:49:56 +0000 Subject: [PATCH] Fix weird pointer usage --- ChangeLog | 4 ++++ main/main.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.39.5