diff --git a/screen/goScreen.h b/screen/goScreen.h index eb03110..75b7c2f 100644 --- a/screen/goScreen.h +++ b/screen/goScreen.h @@ -87,8 +87,8 @@ char* get_XDisplay_name(){ #if defined(USE_X11) const char* display = getXDisplay(); char* sd = (char*)calloc(100, sizeof(char*)); - if(sd)strcpy(sd, display); + if (sd) { strcpy(sd, display); } return sd; #else return "GetXDisplayName is only supported on Linux"; diff --git a/window/goWindow.h b/window/goWindow.h index 1ef174e..ea56f6f 100644 --- a/window/goWindow.h +++ b/window/goWindow.h @@ -14,8 +14,8 @@ int show_alert(const char *title, const char *msg, const char *defaultButton, const char *cancelButton){ + int alert = showAlert(title, msg, defaultButton, cancelButton); - return alert; }