Fix type mismatch in split(1)
Adapted from a patch sent by Random832.
This commit is contained in:
parent
67157b7c4e
commit
bb7427f6c1
4
split.c
4
split.c
|
@ -48,7 +48,7 @@ int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
FILE *in = stdin, *out = NULL;
|
FILE *in = stdin, *out = NULL;
|
||||||
size_t size = 1000, n;
|
off_t size = 1000, n;
|
||||||
int ret = 0, ch, plen, slen = 2, always = 0;
|
int ret = 0, ch, plen, slen = 2, always = 0;
|
||||||
char name[NAME_MAX + 1], *prefix = "x", *file = NULL;
|
char name[NAME_MAX + 1], *prefix = "x", *file = NULL;
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
always = 0;
|
always = 0;
|
||||||
size = estrtonum(EARGF(usage()), 1, MIN(LLONG_MAX, SIZE_MAX));
|
size = estrtonum(EARGF(usage()), 1, MIN(LLONG_MAX, SSIZE_MAX));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user