diff options
Diffstat (limited to 'drivers/isdn/hardware/eicon/debug.c')
-rw-r--r-- | drivers/isdn/hardware/eicon/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hardware/eicon/debug.c b/drivers/isdn/hardware/eicon/debug.c index 6851c6270ce8..d835e74ecf18 100644 --- a/drivers/isdn/hardware/eicon/debug.c +++ b/drivers/isdn/hardware/eicon/debug.c | |||
@@ -756,14 +756,14 @@ int diva_get_driver_info (dword id, byte* data, int data_length) { | |||
756 | 756 | ||
757 | data_length -= 9; | 757 | data_length -= 9; |
758 | 758 | ||
759 | if ((to_copy = MIN(strlen(clients[id].drvName), data_length-1))) { | 759 | if ((to_copy = min(strlen(clients[id].drvName), (size_t)(data_length-1)))) { |
760 | memcpy (p, clients[id].drvName, to_copy); | 760 | memcpy (p, clients[id].drvName, to_copy); |
761 | p += to_copy; | 761 | p += to_copy; |
762 | data_length -= to_copy; | 762 | data_length -= to_copy; |
763 | if ((data_length >= 4) && clients[id].hDbg->drvTag[0]) { | 763 | if ((data_length >= 4) && clients[id].hDbg->drvTag[0]) { |
764 | *p++ = '('; | 764 | *p++ = '('; |
765 | data_length -= 1; | 765 | data_length -= 1; |
766 | if ((to_copy = MIN(strlen(clients[id].hDbg->drvTag), data_length-2))) { | 766 | if ((to_copy = min(strlen(clients[id].hDbg->drvTag), (size_t)(data_length-2)))) { |
767 | memcpy (p, clients[id].hDbg->drvTag, to_copy); | 767 | memcpy (p, clients[id].hDbg->drvTag, to_copy); |
768 | p += to_copy; | 768 | p += to_copy; |
769 | data_length -= to_copy; | 769 | data_length -= to_copy; |