1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-16 10:16:35 +01:00

Some misc fixes

This commit is contained in:
jfreegman
2020-02-29 14:14:56 -05:00
parent b080236ee5
commit 437dd8baeb
7 changed files with 18 additions and 10 deletions

View File

@@ -112,7 +112,7 @@ int avatar_set(Tox *m, const char *path, size_t path_len)
return -1;
}
char PNG_signature[8] = {0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A};
unsigned char PNG_signature[8] = {0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A};
if (check_file_signature(PNG_signature, sizeof(PNG_signature), fp) != 0) {
fclose(fp);