Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site yetti.UUCP Path: utzoo!utcs!mnetor!yetti!oz From: oz@yetti.UUCP (Ozan Yigit) Newsgroups: net.sources Subject: C-Kermit (4.n) bug fix for Pro Venix Message-ID: <117@yetti.UUCP> Date: Sun, 24-Mar-85 15:43:00 EST Article-I.D.: yetti.117 Posted: Sun Mar 24 15:43:00 1985 Date-Received: Tue, 26-Mar-85 12:25:33 EST Organization: York U. Comp.Sci. Downsview, ONT. Lines: 114 Problem: C-kermit (release 4.n) "help set" or "help remote" commands will core dump on Pro VENIX due to the size limitation on the printf format string. (These help commands use the help string as the format string, instead of printf("%s",str)). File: ckusr2.c Fix: Add the missing "%s" where necessary. Incl.: diff output for fixes Oz Dept. of Computer Science York University decvax{utzoo|utcs}!yetti!oz -------- DIFF OUTPUT - C U T H E R E ------------------------------ 305c305 < printf(hmhset); --- > printf("%s",hmhset); 312c312 < printf(hmxychkt); --- > printf("%s",hmxychkt); 316c316 < printf("\ --- > printf("%s","\ 321c321 < printf("\ --- > printf("%s","\ 327c327 < printf("\ --- > printf("%s","\ 333c333 < printf("\ --- > printf("%s","\ 339,342c339,342 < printf(hmxyf[0]); < printf(hmxyf[1]); < printf(hmxyf[2]); < printf(hmxyf[3]); --- > printf("%s",hmxyf[0]); > printf("%s",hmxyf[1]); > printf("%s",hmxyf[2]); > printf("%s",hmxyf[3]); 346c346 < printf("\ --- > printf("%s","\ 352c352 < printf("\ --- > printf("%s","\ 358c358 < printf("\ --- > printf("%s","\ 366c366 < printf("\ --- > printf("%s","\ 368c368 < printf("\ --- > printf("%s","\ 372c372 < printf("\ --- > printf("%s","\ 379c379 < printf("\ --- > printf("%s","\ 385c385 < printf("\ --- > printf("%s","\ 392c392 < printf("\ --- > printf("%s","\ 397c397 < printf("Decimal ASCII value of inbound padding character, normally 0.\n"); --- > printf("%s","Decimal ASCII value of inbound padding character, normally 0.\n"); 401c401 < printf("\ --- > printf("%s","\ 407c407 < printf("Prompt string for this program, normally 'C-Kermit>'.\n"); --- > printf("%s","Prompt string for this program, normally 'C-Kermit>'.\n"); 411c411 < printf("\ --- > printf("%s","\ 418c418 < printf("\ --- > printf("%s","\ 433,434c433,434 < printf(hmhrmt[0]); < printf(hmhrmt[1]); --- > printf("%s",hmhrmt[0]); > printf("%s",hmhrmt[1]);