Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!uc!shamash!tank!gargoyle!chinet!bill From: bill@chinet.chi.il.us (Bill Mitchell) Newsgroups: comp.os.minix Subject: 1.5.3 de and fopen() Message-ID: <1990Mar8.002722.3344@chinet.chi.il.us> Date: 8 Mar 90 00:27:22 GMT Organization: Chinet - Chicago Public Access UNIX Lines: 12 Applying 1.5.3 upgrades to de, I found that it complained about not being able to find /etc/termcap. That turned out to be because the malloc() call in fopen() was failing. chmem =21000 fixed that. de then wouldn't go to map visual mode, complaining that I wasn't on the console. That turned out to be because opendir("/dev") failed. chmem =23000 fixed that. Looks like chmem in the Makefile needs changing. While looking at the above, I noticed that fopen() had already open()ed the file when malloc() failed. fopen() return()ed a NULL, indicating an error, without close()ing the file it had open()ed.