summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ee77215)
%Ld works for size_t only on 64 bit, the correct conversion is %zd
break;
case 'd':
if (strlen(optarg) > sizeof (st->devicename)) {
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);
}
} else {
strcpy(st->devicename, optarg);
}