summaryrefslogtreecommitdiffstats
path: root/common/rfb/ListConnInfo.h
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-09-04 10:16:58 +0000
committerAdam Tkac <atkac@redhat.com>2009-09-04 10:16:58 +0000
commit97abe8a548ff9ca940d568128b21813b8a253872 (patch)
treed38ea6a539b2cc4e70d9569e71985914818546cd /common/rfb/ListConnInfo.h
parent8ed9009b4c4f497a95114d878334de3e13457bdd (diff)
downloadtigervnc-97abe8a548ff9ca940d568128b21813b8a253872.tar.gz
tigervnc-97abe8a548ff9ca940d568128b21813b8a253872.zip
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
Diffstat (limited to 'common/rfb/ListConnInfo.h')
-rw-r--r--common/rfb/ListConnInfo.h12
1 files changed, 6 insertions, 6 deletions
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");
}
}