releasing version 2.17-1

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@11092 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2005-02-18 18:44:27 +00:00
parent 3d248f5d00
commit 00d2970fb5
126 changed files with 786 additions and 778 deletions

View File

@@ -1,5 +0,0 @@
a.out
*.d
*.i
*.s
*.d.tmp

View File

@@ -1,6 +1,6 @@
/* lib/fgetln.c - bsd-games implementation of fgetln.
*
* Copyright (c) 1997, 1998, 1999, 2000 Joseph Samuel Myers.
* Copyright (c) 1997, 1998, 1999, 2000, 2004 Joseph Samuel Myers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -49,7 +49,7 @@ fgetln(FILE *stream, size_t *len)
res = fgets(buf, buflen, stream);
if (res == NULL)
return NULL;
while (buf[buflen - 1] == 0) { /* long line */
while (buf[buflen - 1] == 0 && buf[buflen - 2] != '\n') { /* long line */
nbuf = realloc(buf, buflen * 2);
if (nbuf == NULL)
return NULL;