Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utcsstat.UUCP Path: utzoo!utcsstat!geoff From: geoff@utcsstat.UUCP (Geoffrey Collyer) Newsgroups: net.bugs.4bsd,net.unix-wizards Subject: fix to 4.2BSD sccstorcs Message-ID: <1826@utcsstat.UUCP> Date: Tue, 3-Apr-84 00:21:51 EST Article-I.D.: utcsstat.1826 Posted: Tue Apr 3 00:21:51 1984 Date-Received: Tue, 3-Apr-84 00:49:12 EST Organization: U. of Toronto, Canada Lines: 18 The sccstorcs converter delivered with 4.2BSD exercises a long-standing printf bug when used to convert an SCCS archive containing a long delta commentary. printf(3S) in the BUGS section says ``Very wide fields (>128 characters) fail.'' For some inexplicable reason, the author of sccstorcs chose to use fprintf to write unadorned strings. He should have used fputs instead. Diffs follow (line numbers are approximate, as usual): 276c277 < fprintf (pd, "%s", description ? description : "\n"); --- > fputs(description ? description : "\n", pd); 313c314 < fprintf (pd, delta -> commentary); --- > fputs(delta -> commentary, pd); Geoff Collyer, U. of Toronto