fix entry widget's use of clipboard
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
d61e432e97
commit
efbf90945a
2 changed files with 10 additions and 3 deletions
|
|
@ -148,7 +148,11 @@ static void prop_change(MwWidget handle, const char* prop) {
|
|||
static void clipboard(MwWidget handle, const char* data) {
|
||||
MwEntry t = handle->internal;
|
||||
const char* str = MwGetText(handle, MwNtext);
|
||||
char* out = malloc(strlen(str) + strlen(data) + 1);
|
||||
char* out;
|
||||
if(!str) {
|
||||
str = "";
|
||||
}
|
||||
out = malloc(strlen(str) + strlen(data) + 1);
|
||||
|
||||
if(str == NULL) str = "";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue