aboutsummaryrefslogtreecommitdiff
path: root/lang/wamcc/files/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'lang/wamcc/files/patch-ad')
-rw-r--r--lang/wamcc/files/patch-ad36
1 files changed, 36 insertions, 0 deletions
diff --git a/lang/wamcc/files/patch-ad b/lang/wamcc/files/patch-ad
new file mode 100644
index 000000000000..a8372a5a409f
--- /dev/null
+++ b/lang/wamcc/files/patch-ad
@@ -0,0 +1,36 @@
+--- src/debugger.c.orig Sun Dec 18 12:15:55 1994
++++ src/debugger.c Tue Sep 14 04:16:44 1999
+@@ -278,7 +278,15 @@
+
+ #define Y_Storing_Invoc_Nb(e) (Y(e,3)) /* see call.pl */
+
++static void mygets(char *str, int size)
++{
++ char *p;
++ fgets(str,size,stdin);
+
++ p = index(str, '\n');
++ if(p)
++ *p = '\0';
++}
+
+
+
+@@ -959,7 +967,7 @@
+ Lib1(printf," ? ");
+
+ *str='\0';
+- Lib1(gets,str);
++ Lib2(mygets,str,sizeof(str) - 1);
+ if (*str=='\0')
+ Lib2(strcpy,str,"creep");
+
+@@ -2047,7 +2055,7 @@
+ Lib1(printf,"\nNew value: ");
+
+ *str='\0';
+- Lib1(gets,str);
++ Lib2(mygets,str,sizeof(str) - 1);
+ if (*str=='\0')
+ return;
+