Fix segmentation fault do to sprintf problems.
This commit is contained in:
+1
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user