SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
15
misc/uniutils/patches/patch-unireverse_c
Normal file
15
misc/uniutils/patches/patch-unireverse_c
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue