diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-13 19:36:51 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-13 19:36:51 +0000 |
commit | 36212b99fc20b0661e77e17f89a95b702f21eace (patch) | |
tree | 7e9bb044e79364cec7a4c2a7dde88c47ae69b91f /math/xgraph/files/patch-dialog.c | |
parent | Prevent collision on getline(3) (diff) |
Prevent collision with getline(3)
While here regen patches
Notes
Notes:
svn path=/head/; revision=415142
Diffstat (limited to 'math/xgraph/files/patch-dialog.c')
-rw-r--r-- | math/xgraph/files/patch-dialog.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/math/xgraph/files/patch-dialog.c b/math/xgraph/files/patch-dialog.c new file mode 100644 index 000000000000..567707c21dfc --- /dev/null +++ b/math/xgraph/files/patch-dialog.c @@ -0,0 +1,20 @@ +--- dialog.c.orig 2000-08-03 16:40:44 UTC ++++ dialog.c +@@ -702,7 +702,7 @@ xtb_frame *frame; /* Returned frame */ + new_info->lines = (Window *) malloc((unsigned) (sizeof(Window) * E_LINES)); + + lineptr = text; +- while (getline(&lineptr, line)) { ++ while (get_line(&lineptr, line)) { + if (new_info->num_lines >= new_info->alloc_lines) { + new_info->alloc_lines *= 2; + new_info->lines = (Window *) realloc((char *) new_info->lines, +@@ -800,7 +800,7 @@ char *err_text; + + + +-int getline(tptr, lptr) ++int get_line(tptr, lptr) + char **tptr; + char *lptr; + /* |