Fix a toupper() usage too to avoid negative signed chars.
Этот коммит содержится в:
родитель
081ad7c08c
Коммит
c95ee19c59
@ -58,6 +58,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
|
|
||||||
@ -261,7 +262,7 @@ extern "C"
|
|||||||
{
|
{
|
||||||
inNum *= 8;
|
inNum *= 8;
|
||||||
}
|
}
|
||||||
switch (toupper(inFormat))
|
switch (toupper((u_char)inFormat))
|
||||||
{
|
{
|
||||||
case 'B':
|
case 'B':
|
||||||
conv = UNIT_CONV;
|
conv = UNIT_CONV;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user