From 97abe8a548ff9ca940d568128b21813b8a253872 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Fri, 4 Sep 2009 10:16:58 +0000 Subject: Replace rfb::strDup by safe_strdup and remove rfb::strFree in favor of free() git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3889 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/ListConnInfo.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/rfb/ListConnInfo.h') diff --git a/common/rfb/ListConnInfo.h b/common/rfb/ListConnInfo.h index cabcbc79..6e4eacc5 100644 --- a/common/rfb/ListConnInfo.h +++ b/common/rfb/ListConnInfo.h @@ -52,8 +52,8 @@ namespace rfb { void addInfo(void* Conn, char* IP, char* Time, int Status) { conn.push_back(Conn); - IP_address.push_back(strDup(IP)); - time_conn.push_back(strDup(Time)); + IP_address.push_back(safe_strdup(IP)); + time_conn.push_back(safe_strdup(Time)); status.push_back(Status); } @@ -62,16 +62,16 @@ namespace rfb { buf[1] = *ti; switch (*si) { case 0: - buf[2] = strDup("Full control"); + buf[2] = safe_strdup("Full control"); break; case 1: - buf[2] = strDup("View only"); + buf[2] = safe_strdup("View only"); break; case 2: - buf[2] = strDup("Stop updating"); + buf[2] = safe_strdup("Stop updating"); break; default: - buf[2] = strDup("Unknown"); + buf[2] = safe_strdup("Unknown"); } } -- cgit v1.2.3