Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)

Change-Id: I0b478dfa25a54595ba0dcee1ca3ec0291ee94ef5
This commit is contained in:
Stephan Bergmann
2017-03-22 21:26:34 +01:00
parent 7a46166beb
commit 9df97a7d65

View File

@@ -19,6 +19,7 @@
#include <comphelper/scopeguard.hxx>
#include <comphelper/string.hxx>
#include <filter/msfilter/mscodec.hxx>
#include <rtl/character.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/string.hxx>
#include <sal/log.hxx>
@@ -131,7 +132,7 @@ bad_data:
do
{
PRUint32 decimal = 0;
while (len > 0 && isdigit(*from))
while (len > 0 && rtl::isAsciiDigit(static_cast<unsigned char>(*from)))
{
PRUint32 addend = (*from++ - '0');
--len;