9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Alex Musolino <alex@musolino.id.au>
To: 9front@9front.org
Subject: Re: [9front] serving html sites with announce, listen and accept (dial(2))
Date: Mon, 09 Sep 2024 15:40:19 +0930	[thread overview]
Message-ID: <764ACE45EA09860A18C7975011E8737B@musolino.id.au> (raw)
In-Reply-To: <8DE37884-0209-400A-B603-00557873998C@firstpost.pub>

You are declaring buf as a pointer-to-char so sizeof(buf) == 8.
Either use strlen instead of sizeof or declare buf as an array, i.e.
char buf[] = "...";

--
Cheers,
Alex Musolino


  reply	other threads:[~2024-09-09  6:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-09  5:57 sahu
2024-09-09  6:10 ` Alex Musolino [this message]
2024-09-09  7:28   ` sahu
2024-09-09  8:12     ` sirjofri
2024-09-09  9:09       ` sahu
2024-09-09 10:10         ` sirjofri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=764ACE45EA09860A18C7975011E8737B@musolino.id.au \
    --to=alex@musolino.id.au \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).