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
2
bin.h
2
bin.h
|
|
@ -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 *);
|
||||
|
|
|
|||
Reference in a new issue