7 Commits (main)

Author SHA1 Message Date
Tom MTT. 16f516d6ce feat: cosmopolitan libc support
Added support for cosmopolitan libc.
Simply do `make COSMO=yes` and you'll get feuille.com, a working
αcτµαlly pδrταblε εxεcµταblε pastebin server.

+ version bump.
1 year ago
Tom MTT. c6f8f0e736 fix(bin.c): error check and paste size 1 year ago
Tom MTT. 8c30d271df 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.
1 year ago
Tom MTT. 6c57a4d03c feat: safer `free()'s
`free' allocated buffers only on success inside the main loop, and
`free' them on error inside their respective functions

(fixes an UB where an already freed buffer is freed again in the main
loop)
1 year ago
Tom MTT. de51c9830a fix(bin.c): safer generate_id()
set next byte of ID to zero each time a new character is appended to
prevent undefined behaviours.
1 year ago
Tom MTT. 87fcd5a435 fix(bin.c): remove trailing line in description 1 year ago
Tom MTT. 8453d41a00 feat: First stable release 1 year ago