diff options
Diffstat (limited to 'src/lib/prt.c')
-rw-r--r-- | src/lib/prt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/prt.c b/src/lib/prt.c index f111e2d9..ee5b3af0 100644 --- a/src/lib/prt.c +++ b/src/lib/prt.c @@ -152,7 +152,7 @@ delete_current_char(void) if (buff_flag[curr_pntr] == 1 || buff_flag[curr_pntr] == 0) { myputchar(_BLANK); myputchar(_BKSPC); - strcpy(&buff[curr_pntr], + strmov(&buff[curr_pntr], &buff[curr_pntr + 1]); flagcpy(&buff_flag[curr_pntr], &buff_flag[curr_pntr + 1]); @@ -165,7 +165,7 @@ delete_current_char(void) myputchar(_BLANK); myputchar(_BKSPC); myputchar(_BKSPC); - strcpy(&buff[curr_pntr], + strmov(&buff[curr_pntr], &buff[curr_pntr + 2]); flagcpy(&buff_flag[curr_pntr], &buff_flag[curr_pntr + 2]); @@ -380,7 +380,7 @@ back_over_current_char(void) myputchar(_BLANK); myputchar(_BKSPC); myputchar(_BKSPC); - strcpy(&buff[curr_pntr - 2], + strmov(&buff[curr_pntr - 2], &buff[curr_pntr]); flagcpy(&buff_flag[curr_pntr - 2], &buff_flag[curr_pntr]); @@ -392,7 +392,7 @@ back_over_current_char(void) myputchar(_BKSPC); myputchar(_BLANK); myputchar(_BKSPC); - strcpy(&buff[curr_pntr - 1], + strmov(&buff[curr_pntr - 1], &buff[curr_pntr]); flagcpy(&buff_flag[curr_pntr - 1], &buff_flag[curr_pntr]); |