X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/d5e33853a27c639beda0a85062ce7db9996e22e1..b60f8021eeb3855308829414f20eca4897096fa7:/tbl_opts.c?ds=inline diff --git a/tbl_opts.c b/tbl_opts.c index b9388676..b8e0ea2e 100644 --- a/tbl_opts.c +++ b/tbl_opts.c @@ -1,4 +1,4 @@ -/* $Id: tbl_opts.c,v 1.7 2011/01/07 13:20:58 kristaps Exp $ */ +/* $Id: tbl_opts.c,v 1.8 2011/01/09 05:38:23 joerg Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -188,7 +188,7 @@ again: /* /* Copy up to first non-alpha character. */ for (sv = *pos, i = 0; i < KEY_MAXNAME; i++, (*pos)++) { - buf[i] = tolower(p[*pos]); + buf[i] = tolower((unsigned char)p[*pos]); if ( ! isalpha((unsigned char)buf[i])) break; }