From fc9c8ce3b5584f12acce545f4e3348b7d3dcd9bd Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Wed, 13 Aug 1997 09:38:10 +0000 Subject: Port of the DJGPP2 libraries. PR: 4008 Submitted by: Joel Sutton --- devel/crossgo32-djgpp2/files/patch-ac | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 devel/crossgo32-djgpp2/files/patch-ac (limited to 'devel/crossgo32-djgpp2/files/patch-ac') diff --git a/devel/crossgo32-djgpp2/files/patch-ac b/devel/crossgo32-djgpp2/files/patch-ac new file mode 100644 index 000000000000..681f0a33b3b1 --- /dev/null +++ b/devel/crossgo32-djgpp2/files/patch-ac @@ -0,0 +1,29 @@ +*** src/stub/stubedit.c.orig Sun Jun 22 16:51:08 1997 +--- src/stub/stubedit.c Sun Jun 22 16:57:54 1997 +*************** +*** 1,5 **** +--- 1,6 ---- + /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ + /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ ++ /* Patched by Joel Sutton - Sun Jun 22 16:57:39 EST 1997 */ + #include + #include + #include +*************** +*** 70,76 **** + static char response[200]; + printf("%s ? [%s] ", question, default_answer); + fflush(stdout); +! gets(response); + if (response[0] == '\0') + return 0; + return response; +--- 71,78 ---- + static char response[200]; + printf("%s ? [%s] ", question, default_answer); + fflush(stdout); +! fgets(response, 200, stdin); +! response[strlen(response)-1]='\0'; + if (response[0] == '\0') + return 0; + return response; -- cgit v1.2.3