1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 03:36:45 +02:00

implement data file encryption

This commit is contained in:
Jfreegman
2014-09-14 17:46:28 -04:00
parent 0a6ce62363
commit 51e274ea38
6 changed files with 134 additions and 32 deletions

View File

@ -306,8 +306,8 @@ void bytes_convert_str(char *buf, int size, uint64_t bytes)
}
/* checks if a file exists. Returns true or false */
bool file_exists(const char *fp)
bool file_exists(const char *path)
{
struct stat s;
return stat(fp, &s) == 0;
return stat(path, &s) == 0;
}