Fix get_from_pipe potentially reading more bytes than its buffer size

This commit is contained in:
ToMe25
2023-08-04 11:09:12 +02:00
committed by Robert Roth
parent 306f5d0c8f
commit 079b9e17c5
5 changed files with 8 additions and 9 deletions

View File

@@ -62,7 +62,7 @@ skip_line (const char *p)
}
void
get_from_pipe (char *buffer, const char *cmd);
get_from_pipe (char *buffer, const size_t bufsiz, const char *cmd);
/*
* Smart strtoul which handles binary suffixes