mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 14:10:30 -04:00
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>
15 lines
441 B
C
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;
|