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

2
bin.h
View file

@ -17,7 +17,7 @@
#include "feuille.h"
int paste_exists(char *);
int write_paste(char *, char *);
int write_paste(char *, unsigned long, char *);
char *generate_id(int);
char *create_url(char *);