diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-10 13:24:34 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-10 13:25:09 -0400 |
| commit | a38024c781524e326e3319c7b9f9f037ee01ba00 (patch) | |
| tree | 795e510a96dbafa38cc6c5166734ab91af1c3f27 /new/checkbox_darwin.m | |
| parent | 5bbaaeefe8b0ced1a2a16c50a2ebc3e4da9c432b (diff) | |
Eliminated direct use of strdup(); introduced uiDarwinNSStringToText() to do that work for us (and abort on failure).
Diffstat (limited to 'new/checkbox_darwin.m')
| -rw-r--r-- | new/checkbox_darwin.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/new/checkbox_darwin.m b/new/checkbox_darwin.m index a07a4d0..ca52389 100644 --- a/new/checkbox_darwin.m +++ b/new/checkbox_darwin.m @@ -57,7 +57,7 @@ char *uiCheckboxText(uiControl *c) uiCheckboxNSButton *cc; cc = (uiCheckboxNSButton *) uiControlHandle(c); - return strdup(fromNSString([cc title])); + return uiDarwinNSStringToText([cc title]); } void uiCheckboxSetText(uiControl *c, const char *text) |
