Skip to content

Commit

Permalink
vm: dangit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed May 23, 2024
1 parent 135ea5f commit bc427ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/os-linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const char* vm_executable_path() {
if (size < 0) {
fatal_error("Cannot read /proc/self/exe", errno);
} else {
if (size < ((size_t) bufsiz)) {
if (size < ((ssize_t) bufsiz)) {
// Buffer was large enough, return string.
buf[size] = '\0';
const char* ret = safe_strdup(buf);
Expand Down

0 comments on commit bc427ee

Please sign in to comment.