Small fix to the size of the pathfile.
This commit is contained in:
parent
707cef94a4
commit
a75b7ca352
@ -92,7 +92,11 @@ int main(void)
|
|||||||
// TYPE == 0 is the equivelent of a GET
|
// TYPE == 0 is the equivelent of a GET
|
||||||
if (req.type == 0)
|
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);
|
sprintf(filepath, "%s%d.bin", filepath, req.level);
|
||||||
if (readl(filepath, buffer, 256) == -1)
|
if (readl(filepath, buffer, 256) == -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user