home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!isgate!krafla!adamd
- From: adamd@rhi.hi.is (Adam David)
- Newsgroups: comp.os.minix
- Subject: bug in estdio sprintf() ???
- Summary: sprintf(foo, "%s", foo) BROKEN
- Message-ID: <5238@krafla.rhi.hi.is>
- Date: 22 Aug 92 20:38:43 GMT
- Sender: usenet@rhi.hi.is
- Lines: 12
-
- I just got estdio 2.6 up under minixST (without libfp). It was a little
- bit fiddly because the standard minix C preprocessor barfs on the VARARGS
- routines. 7 files needed some minor attention.
- At last, I have a printf() that returns a value (!!!).
-
- Now I came across this bug in sprintf(). sprintf(foo, "%s", bar) works as it
- should if foo and bar are different strings, but sprintf(foo, "%s", foo) adds
- a '%' character to the front of the string. Has anyone come across this and
- fixed it already?
-
- --
- Adam David. (adamd@rhi.hi.is)
-