Skip to content

Commit

Permalink
Merge remote-tracking branch 'vmonaco/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Sep 25, 2023
2 parents 61c0b09 + 9cbdf44 commit 196343c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ There are two ways to run kloak:

### As an application

Install dependencies:

Fedora:

$ sudo dnf install make pkgconf-pkg-config libsodium libsodium-devel libevdev libevdev-devel

Debian:

$ sudo apt install devscripts
$ sudo mk-build-deps --remove --install

First, compile `kloak` and the event capture tool `eventcap`:

$ make all
Expand Down
3 changes: 3 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ long random_between(long lower, long upper) {

void set_rescue_keys(const char* rescue_keys_str) {
char* _rescue_keys_str = malloc(strlen(rescue_keys_str) + 1);
if(_rescue_keys_str == NULL) {
panic("Failed to allocate memory for _rescue_keys_str");
}
strncpy(_rescue_keys_str, rescue_keys_str, strlen(rescue_keys_str));
_rescue_keys_str[strlen(rescue_keys_str)] = '\0';

Expand Down

0 comments on commit 196343c

Please sign in to comment.