SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Fix an infinite loop on archs where char is unsigned by default (arm*
and powerpc), because EOF (-1) could not be reached by getc(3).
Index: unireverse.c
--- unireverse.c.orig
+++ unireverse.c
@@ -151,7 +151,7 @@ int main(int ac, char **av) {
char * GetLine(FILE *fp, int *LineLength)
{
- char c;
+ int c;
int Available;
int CharsRead;
char *Line;