Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!hc!beta!hgm From: hgm@beta.UUCP Newsgroups: comp.os.minix Subject: dosread bugs Message-ID: <5125@beta.UUCP> Date: Wed, 6-May-87 16:32:44 EDT Article-I.D.: beta.5125 Posted: Wed May 6 16:32:44 1987 Date-Received: Fri, 8-May-87 04:05:58 EDT Organization: Los Alamos Natl Lab, Los Alamos, N.M. Lines: 66 "dosread" is linked to dosdir and doswrite. I have found two bugs in it. One is that it allows dos file names up to 11 (not 12) characters long. The other is that in doswrite, it sets the date wrong. The enclosed diffs can be used with the latest version of patch. Move your original dosread source to a system having the latest "patch". After having cut out the diffs below into a file called dosread.fixes, run "patch -l dosread.c = mon_len[i]) { month++; ! day -= mon_len[i]; } day++; --- 582,589 ---- i = 0; while (day >= mon_len[i]) { month++; ! /* day -= mon_len[i]; */ ! day -= mon_len[i++]; } day++; -----------------------------Cut here--------------------------------- Harry McGavran hgm@LANL.GOV Los Alamos National Laboratory MS-B294, Group C-8 Los Alamos, New Mexico 87545 505/667-4050