Replace fopen() calls with FILE *stdio.

master
Mid Favila 4 months ago
parent 209c0401de
commit 0ecd45a51d
  1. 4
      src/cat.c

@ -71,7 +71,7 @@ int main(int argc, char **argv)
if(!strcmp(argv[i], "-"))
{
fppresence++;
newbuf = cat(fopen("/dev/stdin", "r"), upresence);
newbuf = cat(stdin, upresence);
}
else if((fp = fopen(argv[i], "r")) != NULL)
{
@ -100,7 +100,7 @@ int main(int argc, char **argv)
if(!fppresence)
{
buf = cat(fopen("/dev/stdin", "r"), upresence);
buf = cat(stdin, upresence);
}
if(!upresence)

Loading…
Cancel
Save