kopia lustrzana https://github.com/stlink-org/stlink
Fix compilation for 32bit machines
%Ld works for size_t only on 64 bit, the correct conversion is %zdpull/29/head
rodzic
ee772151c2
commit
e8bae670d2
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue