aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-02-17 15:12:20 +0000
committerRon Yorston <rmy@pobox.com>2012-02-17 15:12:20 +0000
commit6fe28f11f83d489e8f5904a75a90008ca94c1437 (patch)
treeea408290fbcb5b5c1237d71a6b3ad7788795ab17
parent6a798baff737501dfeda782af0e79024de1ad491 (diff)
downloadbusybox-w32-6fe28f11f83d489e8f5904a75a90008ca94c1437.tar.gz
busybox-w32-6fe28f11f83d489e8f5904a75a90008ca94c1437.tar.bz2
busybox-w32-6fe28f11f83d489e8f5904a75a90008ca94c1437.zip
Fix off-by-one error in cursor positioning
-rw-r--r--win32/winansi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/winansi.c b/win32/winansi.c
index f08fe2b79..3276913da 100644
--- a/win32/winansi.c
+++ b/win32/winansi.c
@@ -284,7 +284,7 @@ static const char *set_attr(const char *str)
284 int row = strtol(str, (char **)&str, 10); 284 int row = strtol(str, (char **)&str, 10);
285 if (*str == ';') { 285 if (*str == ';') {
286 int col = strtol(str+1, (char **)&str, 10); 286 int col = strtol(str+1, (char **)&str, 10);
287 move_cursor(col, row); 287 move_cursor(col-1, row-1);
288 } 288 }
289 } 289 }
290 break; 290 break;