1
0
Fork 0
mirror of https://github.com/pygos/usyslog.git synced 2024-11-17 02:07:11 +01:00
Commit graph

5 commits

Author SHA1 Message Date
David Oberhollenzer
a70b85fd64 minor klogd fixes
when copying the left over stub, always make sure we copy the null
terminator as well. Theoretically shouldn't be a problem since we
exit the inner loop anyway and then append to the buffer and add
a new null terminator, but just to be safe, make sure the buffer
is *ALWAYS* null-terminated.

When we are at it, skip the buffer copy if we didn't consume any
input and actually compare the value against '\0' instead of just
testing for *ptr (readabillity).

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 15:28:03 +01:00
David Oberhollenzer
7dfe5f6285 Add README.md file
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 14:27:10 +01:00
David Oberhollenzer
200daf7dbb Import syslog utility program
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 14:25:50 +01:00
David Oberhollenzer
49f52b1571 Relicense the code under OpenBSD style ISC license
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 12:34:57 +01:00
David Oberhollenzer
a4423189ab Initial import
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-28 12:31:03 +01:00