Skip to content
Tcl Source Code Artifact [aa30ce6426]
Login

Artifact [aa30ce6426]

Artifact aa30ce6426854c2ca1b9d74b5fb4783fda4ccd78:

Ticket change [aa30ce6426] - Ticket [999544ffffffffff|999544ffff] <i>Threaded Tcl calls non-thread-safe library functions</i> status still Open with 4 other changes by vasiljevic on 2006-09-07 23:01:09.
D 2006-09-07T23:01:09
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nWell,\sit\ssays\sin\sthe\scode:\n\n\n/*\n\s\n*----------------------------------------------------------------\n-----------\n\s*\n\s*\sCopyArray\s--\n\s*\n\s*\s\s\s\s\s\sCopies\sarray\sof\sNULL-terminated\sor\sfixed-length\sstrings\n\s*\s\s\s\s\s\sto\sthe\sprivate\sbuffer,\shonouring\sthe\ssize\sof\sthe\sbuffer.\n\s*\n\s*\sResults:\n\s*\s\s\s\s\s\sNumber\sof\sbytes\scopied\son\ssuccess\sor\s-1\son\serror\s(errno\s=\sERANGE)\n\s*\n\s*\sSide\seffects:\n\s*\s\s\s\s\s\sNone.\n\s*\n\s\n*----------------------------------------------------------------\n-----------\n\s*/\n\nThis\sis\sbasically\scopying\sthe\s\n\n\s\ssrc[0]\s....\ssrc[n]\n\nto\sa\suser-passed\sbuffer.\sThe\sbuffer\sstores\sthe\scopy\sof\sthe\narray\sand\sfollowing\sit\sthe\sstrings\sreferenced\sby\sthe\sarray.\n\nI\slook\sand\sstill\sdo\snot\ssee\sthe\sproblem.\nThere\sis\sone\sassigment\sthere\n\n\s\s\s\s\slen\s=\s(sizeof(char\s*)*(i\s+\s1));\s/*\sLeave\splace\sfor\sthe\sarray\s*/\n\s\s\s\snew\s=\s(char\s**)buf;\n\nBut\sthis\sshould\sbe\sinnocent\sreally...\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 999544ffffffffffffffffffffffffffffffffff
U vasiljevic
Z c4c9ea6a165707f0117352c486c49fc7