Hello Here is the 'diff -u' output of the fix:
--- fmt.c.orig Fri Jan 4 01:43:17 2008 +++ fmt.c Sat Jan 5 12:20:48 2008 @@ -53,6 +53,7 @@ wchar_t outbuf[BUFSIZ]; /* Sandbagged output line image */ wchar_t *outp; /* Pointer in above */ int filler; /* Filler amount in outbuf */ +char sobuf[BUFSIZ]; /* Global buffer - Correction to Bug 6355611 */ int pfx; /* Current leading blank count */ int width = 72; /* Width that we will not exceed */ @@ -115,7 +116,6 @@ main(int argc, char **argv) { FILE *fi; - char sobuf[BUFSIZ]; char *cp; int nofile; char *locale; I have tested the compiled fmt command for giving out a formatted output of a text file. It works perfectly fine. Regards Souvik Das Gupta This message posted from opensolaris.org