🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3008

sprintf() hangs application

#3008
From: Larry Salomon Jr.
Date: Tue, 17 Nov 1992 19:09
22 lines
1310 bytes
For some reason, a call to sprintf() instead one of my routines
(called getTempName()) hangs my PM application (using C-Set/2 from
CD ROM to compile).

Since sprintf() calls malloc() I decided to allocate 100 bytes before
calling sprintf() (and immediately free the 100 bytes), and - sure enough -
the app hung on the malloc() call.

It sounds like something is getting trashed somewhere, but I don't make
any calls to malloc() (I use my own home-grown routines, which I am 99%
sure are correct) so it's not like the run-time is suffering from memory
fragmentation.

If *anyone* has any ideas what's going on, *please* let me know, since this
is a "show stopper."

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
Technical Details
Message-ID: <1992Nov17.190901.16350@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!cmcl2!panix!os2man

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!cmcl2!panix!os2man
From: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: sprintf() hangs application
Message-ID: <1992Nov17.190901.16350@panix.com>
Date: 17 Nov 92 19:09:01 GMT
Organization: PANIX Public Access Unix, NYC
Lines: 22