0xa1baa1baa1baa1ba on Nostr: Haelwenn /элвэн/ :triskell: strlcpy returns the end of the buffer, eliminating ...
Haelwenn /элвэн/ :triskell: (npub1ysu…2jyl) strlcpy returns the end of the buffer, eliminating the usage of strcat. Nothing else does it, though it still can be emulated with strlen + memcpy :)
I just want to say it's hard to not break the POSIX and because it's broken anyway, why pretend that all Unixes are the same? If you want to support GNU, support it, if you don't, don't. Easy.
Published at
2023-07-08 15:09:45Event JSON
{
"id": "6f412c2583a2bce0df63bfea8c694ba2b9f2ed5a46e78c276fc6089059b9214f",
"pubkey": "288059249d3068d2994e16ca1aa07ec4db75f434042952e536305c8ea1ce16a9",
"created_at": 1688828985,
"kind": 1,
"tags": [
[
"p",
"24389949b53d16958eae22ba78a4040316903c933a9e8f9d9fd5f10688fc62af",
"wss://relay.mostr.pub"
],
[
"e",
"36af8741d1346779737945db57efd8ea894c5e2fea87cc5da0c5a51366ee97a5",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://suya.place/objects/afb2731c-6eaf-4598-805f-968299112c0c"
]
],
"content": "nostr:npub1ysufjjd485tftr4wy2a83fqyqvtfq0yn820gl8vl6hcsdz8uv2hskx2jyl strlcpy returns the end of the buffer, eliminating the usage of strcat. Nothing else does it, though it still can be emulated with strlen + memcpy :)\n\nI just want to say it's hard to not break the POSIX and because it's broken anyway, why pretend that all Unixes are the same? If you want to support GNU, support it, if you don't, don't. Easy.",
"sig": "69c6ad30a16ea2ded717468942f6e4413ba9df6aa19e5a94d651095f343d90c416fda3d0700be46fa6839bb27f150319ff498d97841f2c643ca9a1eeb41658e7"
}