diff options
Diffstat (limited to 'ACE/tests/TkReactor_Test.cpp')
-rw-r--r-- | ACE/tests/TkReactor_Test.cpp | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/ACE/tests/TkReactor_Test.cpp b/ACE/tests/TkReactor_Test.cpp index 3d421d77182..2b7a7634ae8 100644 --- a/ACE/tests/TkReactor_Test.cpp +++ b/ACE/tests/TkReactor_Test.cpp @@ -44,13 +44,13 @@ Tcl_Interp* tcl_interp; void eval (const char *s) { char buf[BUFSIZ]; - strcpy (buf,s); + ACE_OS::strcpy (buf,s); int st = Tcl_GlobalEval(tcl_interp,buf); if (st != TCL_OK) { - int n = strlen(s); + int n = ACE_OS::strlen(s); char* wrk = new char[n + 80]; - sprintf(wrk, "tkerror \"%s\"", s); + ACE_OS::sprintf(wrk, "tkerror \"%s\"", s); Tcl_GlobalEval(tcl_interp, wrk); delete wrk; //exit(1); @@ -90,7 +90,7 @@ client (void *) ACE_SOCK_Stream stream; ACE_SOCK_Connector connector; - sprintf (buf, "Client: the life was good!"); + ACE_OS::sprintf (buf, "Client: the life was good!"); mes_len = (int) htonl (ACE_OS::strlen (buf) + 1); @@ -133,11 +133,11 @@ inc_count (ClientData client_data, Tcl_Interp *interp,int, char **) ACE_DEBUG ((LM_DEBUG,"inc_count ")); char new_string[80]; - sprintf (new_string, - "Events: [%d] [%d] [%d]", - count1++, - count2, - count3); + ACE_OS::sprintf (new_string, + "Events: [%d] [%d] [%d]", + count1++, + count2, + count3); // sprintf (command,"set %s %s",(char *)client_data,new_string); // eval (command); @@ -156,11 +156,11 @@ inc_tmo (ClientData client_data) if (count2 > 10) ACE_OS::exit (0); - sprintf (new_string, - "Events: [%d] [%d] [%d]", - count1, - count2++, - count3); + ACE_OS::sprintf (new_string, + "Events: [%d] [%d] [%d]", + count1, + count2++, + count3); // sprintf (command,"set %s %s",(char *)client_data,new_string); // eval (command); @@ -180,11 +180,11 @@ public: const void *arg) { char new_string[80]; - sprintf (new_string, - "Events: [%d] [%d] [%d]", - count1, - count2, - count3++); + ACE_OS::sprintf (new_string, + "Events: [%d] [%d] [%d]", + count1, + count2, + count3++); // sprintf (command,"set %s %s",(char *)arg,new_string); // eval (command); @@ -199,8 +199,10 @@ public: class Connection_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> { public: + //FUZZ: disable check_for_lack_ACE_OS virtual int open (void *) { + //FUZZ: enable check_for_lack_ACE_OS char buf[100]; int head; ssize_t ret = this->peer ().recv_n ((char *) &head, |