diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-09-24 03:57:13 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-09-24 03:57:13 +0000 |
commit | 7883df5ea28a0934e59540ca93a33a726bb9aa07 (patch) | |
tree | 394ed05dcd53aebfd6c2d7e23c5b011aee6a4eab /misc/mshell/files/patch-ae | |
parent | Update this to fix install problem. (diff) |
Mshell port from Jean-Marc Zucconi (jmz@thud.cdrom.com). Jean-Marc
is now our leading ports-supplier! Let's all give him a big THANK YOU! :)
Submitted by: jmz
Notes
Notes:
svn path=/head/; revision=117
Diffstat (limited to 'misc/mshell/files/patch-ae')
-rw-r--r-- | misc/mshell/files/patch-ae | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/misc/mshell/files/patch-ae b/misc/mshell/files/patch-ae new file mode 100644 index 000000000000..928f9c25b1d7 --- /dev/null +++ b/misc/mshell/files/patch-ae @@ -0,0 +1,22 @@ +*** string.c.orig Fri Sep 23 18:34:06 1994 +--- string.c Fri Sep 23 18:50:39 1994 +*************** +*** 4,9 **** +--- 4,20 ---- + #define strchr index + #endif + ++ char * ++ gets (char *s) ++ { ++ char *x = fgets (s, WORDLEN, stdin); ++ if (x) { ++ char *p = strchr (x, '\n'); ++ if (p) ++ *p = 0; ++ } ++ return x; ++ } + + /* function to find the position of sub_string in main_string + * ---------------------------------------------------------- */ |