File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1739,7 +1739,7 @@ enum shellCTRL _inner_do_obj_runChar(PikaObj* self,
1739
1739
shell -> lineBuff [shell -> line_position ] = 0 ;
1740
1740
if (shell -> line_curpos != shell -> line_position ) {
1741
1741
/* update screen */
1742
- pika_platform_printf (shell -> lineBuff + shell -> line_curpos );
1742
+ pika_platform_printf ("%s" , shell -> lineBuff + shell -> line_curpos );
1743
1743
pika_platform_printf (" " );
1744
1744
_putc_cmd (PIKA_KEY_LEFT ,
1745
1745
shell -> line_position - shell -> line_curpos + 1 );
@@ -1762,7 +1762,7 @@ enum shellCTRL _inner_do_obj_runChar(PikaObj* self,
1762
1762
shell -> line_position - shell -> line_curpos );
1763
1763
shell -> lineBuff [shell -> line_position + 1 ] = 0 ;
1764
1764
if (shell -> line_curpos != shell -> line_position ) {
1765
- pika_platform_printf (shell -> lineBuff + shell -> line_curpos + 1 );
1765
+ pika_platform_printf ("%s" , shell -> lineBuff + shell -> line_curpos + 1 );
1766
1766
_putc_cmd (PIKA_KEY_LEFT ,
1767
1767
shell -> line_position - shell -> line_curpos );
1768
1768
}
You can’t perform that action at this time.
0 commit comments