1
1

Fix a toupper() usage too to avoid negative signed chars.

Этот коммит содержится в:
Havard Eidnes 2015-02-12 15:13:00 +01:00
родитель 081ad7c08c
Коммит c95ee19c59

Просмотреть файл

@ -58,6 +58,7 @@
#include <stdint.h>
#endif
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/time.h>
#include <netinet/tcp.h>
@ -261,7 +262,7 @@ extern "C"
{
inNum *= 8;
}
switch (toupper(inFormat))
switch (toupper((u_char)inFormat))
{
case 'B':
conv = UNIT_CONV;