fix segfault when pasting
This commit is contained in:
parent
e46bb36669
commit
eb5c01edf7
|
@ -26,6 +26,10 @@
|
|||
[outlineView expandItem: [[historyItems allValues] firstObject] expandChildren: NO];
|
||||
}
|
||||
|
||||
-(void)open: (id)sender {
|
||||
NSLog(@"Open selected sites...", sender);
|
||||
}
|
||||
|
||||
-(id)outlineView: (NSOutlineView*)outlineView child: (NSInteger)index ofItem: (id)item {
|
||||
if (item == nil) {
|
||||
return [[historyItems allValues] firstObject];
|
||||
|
|
Binary file not shown.
|
@ -21,7 +21,7 @@ static void gnustep_clipboard_get(char **buffer, size_t *length) {
|
|||
*length = len;
|
||||
*buffer = malloc(len + 1);
|
||||
strncpy(*buffer, cstring, len);
|
||||
*buffer[len - 1] = '\0';
|
||||
(*buffer)[len] = '\0';
|
||||
}
|
||||
|
||||
// Save the provided clipboard for later retreival above
|
||||
|
|
Loading…
Reference in New Issue