diff options
author | Adam Tkac <atkac@redhat.com> | 2009-09-04 10:16:58 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2009-09-04 10:16:58 +0000 |
commit | 97abe8a548ff9ca940d568128b21813b8a253872 (patch) | |
tree | d38ea6a539b2cc4e70d9569e71985914818546cd /unix/tx/TXButton.h | |
parent | 8ed9009b4c4f497a95114d878334de3e13457bdd (diff) | |
download | tigervnc-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 'unix/tx/TXButton.h')
-rw-r--r-- | unix/tx/TXButton.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tx/TXButton.h b/unix/tx/TXButton.h index b7472797..59a84303 100644 --- a/unix/tx/TXButton.h +++ b/unix/tx/TXButton.h @@ -59,7 +59,7 @@ public: // setText() changes the text in the button. void setText(const char* text_) { - text.buf = rfb::strDup(text_); + text.buf = safe_strdup(text_); int textWidth = XTextWidth(defaultFS, text.buf, strlen(text.buf)); int textHeight = (defaultFS->ascent + defaultFS->descent); int newWidth = __rfbmax(width(), textWidth + xPad*2 + bevel*2); |