C-Kermit (4.n) bug fix for Pro Venix
Ozan Yigit
oz at yetti.UUCP
Mon Mar 25 06:43:00 AEST 1985
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]);
More information about the Comp.sources.unix
mailing list