if(*len2=='='){
do{
len2++;
- }while(*len2 && !isdigit(*len2));
+ }while(*len2 && !isdigit((uint8_t)*len2));
len=(uint32_t)strtoul(len2, NULL, 10);
return len;
}
cli_putstr("\r\n");
#endif
while((c=cli_getc_cecho())!='M' && c!='m'){
- if(!isblank(c)){
+ if(!isblank((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (1) [0x");
cli_hexdump(&c, 1);
cli_putstr("]!\r\n");
return;
}
while((c=cli_getc_cecho())!='='){
- if(!isblank(c)){
+ if(!isblank((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (4)!\r\n");
hfal_hash_free(&(shavs_ctx.ctx));
return;
uint8_t m[ml*4+8];
for(;;){
while((c=cli_getc_cecho())!='S' && c!='s'){
- if(!isblank(c)){
+ if(!isblank((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (1) [0x");
cli_hexdump(&c, 1);
cli_putstr("]!\r\n");
return;
}
while((c=cli_getc_cecho())!='='){
- if(!isblank(c)){
+ if(!isblank((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (5)!\r\n");
return;
}
uint8_t m[ml+128];
for(;;){
while((c=cli_getc_cecho())!='S' && c!='s'){
- if(!isblank(c)){
+ if(!isblank((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (1) [0x");
cli_hexdump(&c, 1);
cli_putstr("]!\r\n");
return;
}
while((c=cli_getc_cecho())!='='){
- if(!isblank(c)){
+ if(!isblank((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (5)!\r\n");
return;
}