Removed unnecessary malloc() at all

This commit is contained in:
Alexey 'Cluster' Avdyukhin 2021-06-28 09:18:48 +03:00
parent 2c74b61bf9
commit 6376c9a311
1 changed files with 2 additions and 4 deletions

View File

@ -297,9 +297,9 @@ void UndoLastPatch(){
}
void GotoAddress(HWND hwnd) {
char* gotoaddressstring = (char*)malloc(8);
char gotoaddressstring[8];
int gotoaddress;
char* gototitle = (char*)malloc(18);
char gototitle[18];
gotoaddressstring[0] = '\0';
sprintf(gototitle, "%s%X%s", "Goto (0-", MaxSize-1, ")");
@ -310,8 +310,6 @@ void GotoAddress(HWND hwnd) {
SetHexEditorAddress(gotoaddress);
}
}
free(gotoaddressstring);
free(gototitle);
}
void SetHexEditorAddress(int gotoaddress)