Commit Graph

44 Commits

Author SHA1 Message Date
xfnw 743cac974d remove redundant else and fix formatting 2024-01-08 13:12:42 -05:00
vulpine c6ed6a3b25 add missing null to client_message
a regression in 4b147066 meant that attempting to read a pixel value
whilst there were more lines queued up would instead overwrite it
2023-11-01 19:51:38 +00:00
xfnw ddba6ff1cd switch back to sprintf+write
dprintf seems to require quite a few extra syscalls on certain
platforms, requiring allowing nonsense like filesystem access
unless we switch to a significantly more complex bpf filter.
2023-09-25 15:30:54 -04:00
xfnw 3f825f65aa fix helptext length
a regression in 933515b caused the helptext to get sent with
a stray null byte
2023-09-21 21:19:22 -04:00
xfnw 2cc6139b4c switch out starting escape code
just turn off blinking in the tty, rather than hiding the cursor which
may cause confusion after fbflut exits and affects non-ttys
2023-09-20 16:43:15 -04:00
xfnw 933515bf47 remove unnecessary sending message buffer 2023-09-20 16:13:55 -04:00
xfnw 50657bcd00 improve message on failure to open fb 2023-09-16 16:54:39 -04:00
xfnw c1d4461f02 check if recv defined before allowing 2023-09-16 16:43:11 -04:00
xfnw 92eb6af7d1 allow recv syscall 2023-09-14 17:37:56 -04:00
xfnw ed2d1d9b62 improve error messages and comments 2023-09-14 16:15:25 -04:00
xfnw 4b147066bc style changes, remove some unnecessary code 2023-09-14 15:57:32 -04:00
xfnw 7d2993a3fb put unistd back and allow munmap syscall
fixes i386 alpine
2023-09-13 22:21:33 -04:00
xfnw 526f4d0b1a mark argv constant 2023-09-13 22:15:10 -04:00
xfnw cccc2d529a switch to using bpf seccomp 2023-09-13 22:00:22 -04:00
xfnw 1c440e4ac6 format 2023-06-25 10:48:40 -04:00
xfnw 8dfced7399 add -DLOSSY option 2022-12-03 23:58:16 -05:00
xfnw 3f33cf6a76 use strtok_r instead of strtok
for thread safety

fixes #2
2022-12-03 21:43:04 -05:00
xfnw def4b80f1f move defines to makefile and create ALPHA_AT_END ifdef 2022-08-23 15:07:21 -04:00
xfnw 02554ea547 detach threads
oops, found another memory leak lol
2022-07-20 15:02:34 -04:00
xfnw 0299b4c0de reduce scope of variables for setting timeout 2022-07-20 14:15:25 -04:00
xfnw 0fe01249de correct include sys/signal.h -> signal.h 2022-07-19 14:57:57 -04:00
xfnw fb52c8cd05 reduce scope of thread_id 2022-07-10 11:24:32 -04:00
xfnw 86928fa990 reduce scope of command and read_to 2022-04-24 10:00:37 -04:00
xfnw 532e731e9c make the compiler not mad at me 2022-04-06 19:22:32 -04:00
xfnw e771a4bb10 remove extra null byte
i have no clue why i put that there
2022-03-14 19:47:37 -04:00
vulpine 3a2abc58e8 support ipv6 2022-02-18 20:16:14 -05:00
xfnw 527cd1c5f3 remove unnessesary whitespace 2022-01-29 21:32:07 -05:00
xfnw 7d31364977 fix compiling on musl 2022-01-16 11:52:22 -05:00
xfnw 548abe4349 pad color output with zeros to be at least 6 letters long 2021-12-03 08:59:54 -05:00
vulpine 0df4eebd91 ignore SIGPIPE
this prevents a crash on clients improperly closing sockets
2021-11-16 16:16:57 -05:00
xfnw d968844f65 use seccomp mode 1 for unreasonable security 2021-09-06 21:50:45 -04:00
vulpine 7a8de94092 attempt to wait for newline
previously, if a line was split between TCP packets it would be
truncated
2021-09-03 19:20:39 -04:00
vulpine 0893d2dd3a fix the memory leak by not using calloc
yay its slightly faster now too

thanks to rber and AmyMalik on libera dot chat :3
2021-09-03 15:23:55 -04:00
xfnw 96a074bb4d check if first charactor is \0, its faster than strlen 2021-08-21 15:18:37 -04:00
xfnw d3e9803cf2 check if color specified before conversion to hex
this allows black to be written instead of returning the pixel value
2021-08-21 15:12:00 -04:00
xfnw 6b62d31dc5 add timeout to close inactive connections 2021-08-19 18:23:02 -04:00
xfnw 1d84d1eb62 make sure client_message is null terminated, prevents a buffer overflow 2021-08-19 17:16:02 -04:00
xfnw 876a56e216 fix segmentation fault from not mapping enough 2021-08-19 17:15:47 -04:00
xfnw 4b6b4d6f9d framebuffer colors seem to be in a different order than documented? 2021-08-19 15:08:40 -04:00
xfnw e2713e00e0 follow line_length instead of assuming the line length is the width
if you dont, some monitors go streeeeech lol
2021-08-19 13:29:38 -04:00
xfnw a0cbc30959 it sorta works i guess lol 2021-08-19 13:18:10 -04:00
xfnw 33bb7de0d0 whee parse the PX 2021-08-19 12:28:40 -04:00
xfnw 44bd07ea06 some command parsing 2021-08-18 23:32:05 -04:00
xfnw 2b9a557346 init 2021-08-18 21:33:29 -04:00