Fix compilation for 32bit machines

%Ld works for size_t only on 64 bit, the correct conversion is %zd
pull/29/head
Karl Palsson 2011-11-01 21:23:16 +00:00 zatwierdzone przez Hakkavélin
rodzic ee772151c2
commit e8bae670d2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -143,7 +143,7 @@ int parse_options(int argc, char** argv, st_state_t *st) {
break;
case 'd':
if (strlen(optarg) > sizeof (st->devicename)) {
fprintf(stderr, "device name too long: %ld\n", strlen(optarg));
fprintf(stderr, "device name too long: %zd\n", strlen(optarg));
} else {
strcpy(st->devicename, optarg);
}