mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
Prevent crash when pasting in Linux
This commit is contained in:
@@ -427,7 +427,7 @@ char * clipboard_pull_text()
|
|||||||
if(glbuffer!=NULL){
|
if(glbuffer!=NULL){
|
||||||
return mystrdup(glbuffer);
|
return mystrdup(glbuffer);
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return mystrdup("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(LIN) && defined(SDL_VIDEO_DRIVER_X11)
|
#elif defined(LIN) && defined(SDL_VIDEO_DRIVER_X11)
|
||||||
@@ -435,7 +435,7 @@ char * clipboard_pull_text()
|
|||||||
#else
|
#else
|
||||||
printf("Not implemented: get text from clipboard\n");
|
printf("Not implemented: get text from clipboard\n");
|
||||||
#endif
|
#endif
|
||||||
return "";
|
return mystrdup("");
|
||||||
}
|
}
|
||||||
|
|
||||||
int register_extension()
|
int register_extension()
|
||||||
|
Reference in New Issue
Block a user