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:
parent
b61f5c4cae
commit
8c30d271df
7 changed files with 23 additions and 20 deletions
4
server.h
4
server.h
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue