summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-01-08 17:52:12 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-01-08 17:52:12 +0000
commitfe210c5d5895eb53fd2325dff1cf68e831d5c4ec (patch)
tree210979c7e36b978cd3bfa4a4e5ce0beec0b54124
parent9cb1da921bd94b4d74afba656c357d7c1e23ee78 (diff)
downloadnetsurf-fe210c5d5895eb53fd2325dff1cf68e831d5c4ec.tar.gz
netsurf-fe210c5d5895eb53fd2325dff1cf68e831d5c4ec.tar.bz2
Fixups.
-rw-r--r--cocoa/selection.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/cocoa/selection.m b/cocoa/selection.m
index 69707ba33..0acbd3b76 100644
--- a/cocoa/selection.m
+++ b/cocoa/selection.m
@@ -28,7 +28,6 @@ static NSMutableString *cocoa_clipboard_string;
void gui_start_selection(struct gui_window *g)
{
- gui_empty_clipboard();
}
void gui_clear_selection(struct gui_window *g)
@@ -54,7 +53,7 @@ void gui_get_clipboard(char **buffer, size_t *length)
const char *text = [string UTF8String];
*length = strlen(text);
- *buffer = malloc(gui_clipboard.length);
+ *buffer = malloc(*length);
if (*buffer != NULL) {
memcpy(*buffer, text, *length);