Fix segmentation fault do to sprintf problems.

This commit is contained in:
Afonso Clerigo Mendes de Sousa 2025-02-27 12:31:08 +00:00
parent 4b618b0be9
commit f5740ec35f

View File

@ -114,9 +114,7 @@ int main(void)
char *filepath = create(char);
filepath = size(filepath, 256);
strcpy(filepath, PASSWORDS);
sprintf(filepath, "%s%d.bin", filepath, req.level);
sprintf(filepath, "%s%d.bin", PASSWORDS, req.level);
int *key2 = create(int);
key2 = size(key2, 256);