home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / minix / 4275 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  857 b 

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