Small fix to the size of the pathfile.

This commit is contained in:
Afonso Clerigo Mendes de Sousa 2025-02-27 12:06:44 +00:00
parent 707cef94a4
commit a75b7ca352

View File

@ -92,7 +92,11 @@ int main(void)
// TYPE == 0 is the equivelent of a GET
if (req.type == 0)
{
char *filepath = PASSWORDS;
char *filepath = create(char);
filepath = size(filepath, 256);
strcpy(filepath, PASSWORDS);
sprintf(filepath, "%s%d.bin", filepath, req.level);
if (readl(filepath, buffer, 256) == -1)
{