Annotation of pkgsrc/textproc/lua-stringy/patches/patch-stringy_stringy.c, revision 1.1
1.1 ! nia 1: $NetBSD$
! 2:
! 3: Argument to ctype functions must be unsigned char.
! 4:
! 5: --- stringy/stringy.c.orig 2020-09-16 18:28:14.000000000 +0000
! 6: +++ stringy/stringy.c
! 7: @@ -164,9 +164,9 @@ static int strip(lua_State *L) {
! 8: front = luaL_checklstring(L, 1, &size);
! 9: end = &front[size - 1];
! 10:
! 11: - for ( ; size && isspace(*front) ; size-- , front++)
! 12: + for ( ; size && isspace((unsigned char)*front) ; size-- , front++)
! 13: ;
! 14: - for ( ; size && isspace(*end) ; size-- , end--)
! 15: + for ( ; size && isspace((unsigned char)*end) ; size-- , end--)
! 16: ;
! 17:
! 18: lua_pushlstring(L, front, (size_t)(end - front) + 1);
CVSweb <webmaster@jp.NetBSD.org>