feat: use paste size instead of NULL byte in order to write the paste

Previously, the pastes were written to disk until feuille encountered
a NULL byte. This is now fixed.

+ version bump.
This commit is contained in:
Tom MTT 2022-11-29 13:57:11 +01:00
parent b61f5c4cae
commit 8c30d271df
7 changed files with 23 additions and 20 deletions

View file

@ -21,7 +21,7 @@ int initialize_server();
int accept_connection(int);
void close_connection(int);
char *read_paste(int);
int send_response(int, char *);
unsigned long read_paste(int, char **);
int send_response(int, char *);
#endif