@@ -709,7 +709,7 @@ _curses_window_addstr_impl(PyCursesWindowObject *self, int group_left_1,
709709 else
710710#endif
711711 {
712- char * str = PyBytes_AS_STRING (bytesobj );
712+ const char * str = PyBytes_AS_STRING (bytesobj );
713713 funcname = "addstr" ;
714714 if (use_xy )
715715 rtn = mvwaddstr (self -> win ,y ,x ,str );
@@ -792,7 +792,7 @@ _curses_window_addnstr_impl(PyCursesWindowObject *self, int group_left_1,
792792 else
793793#endif
794794 {
795- char * str = PyBytes_AS_STRING (bytesobj );
795+ const char * str = PyBytes_AS_STRING (bytesobj );
796796 funcname = "addnstr" ;
797797 if (use_xy )
798798 rtn = mvwaddnstr (self -> win ,y ,x ,str ,n );
@@ -1710,7 +1710,7 @@ _curses_window_insstr_impl(PyCursesWindowObject *self, int group_left_1,
17101710 else
17111711#endif
17121712 {
1713- char * str = PyBytes_AS_STRING (bytesobj );
1713+ const char * str = PyBytes_AS_STRING (bytesobj );
17141714 funcname = "insstr" ;
17151715 if (use_xy )
17161716 rtn = mvwinsstr (self -> win ,y ,x ,str );
@@ -1795,7 +1795,7 @@ _curses_window_insnstr_impl(PyCursesWindowObject *self, int group_left_1,
17951795 else
17961796#endif
17971797 {
1798- char * str = PyBytes_AS_STRING (bytesobj );
1798+ const char * str = PyBytes_AS_STRING (bytesobj );
17991799 funcname = "insnstr" ;
18001800 if (use_xy )
18011801 rtn = mvwinsnstr (self -> win ,y ,x ,str ,n );
0 commit comments