ports/sysutils/ods2/files/patch-ods2.c
Jean-Yves Lefort 4e912c31dd Add ods2.
From aaareadme.txt:

Say, what is this?
   ODS2 is a program to read VMS disk volumes written in VMS
   ODS2 format.

What can it do?
   Basically ODS2 provides cut down DIRECTORY, COPY and
   SEARCH commands for VMS volumes on non-VMS systems. These
   can be used to find out what is on a VMS volume, and copy
   files onto the local file sytem.

See aaareadme.txt and aaareadme.too for more information.

WWW: http://www.goatley.com/hunter/

PR:		ports/92996
Submitted by:	Thierry Dussuet <thierry@dussuet.lugs.ch>
2006-02-08 04:21:29 +00:00

15 lines
441 B
C

--- ods2.c~ Fri Sep 7 23:17:04 2001
+++ ods2.c Tue Jan 31 13:03:50 2006
@@ -1094,8 +1094,10 @@
#ifdef VMS
if (getcmd (str, "$> ") == NULL) break;
#else
- printf("$> ");
- if (gets(str) == NULL) break;
+ printf("$> ");
+ if (fgets(str, sizeof(str), stdin) == NULL)
+ break;
+ str[strlen(str)-1] = '\0'; /* strip newline from str */
#endif
}
ptr = str;