From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
To: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Too long network device names corrupts kernel
Date: Thu, 23 Nov 2000 16:17:23 -0500 [thread overview]
Message-ID: <200011232117.eANLHo003458@sandelman.ottawa.on.ca> (raw)
In-Reply-To: Your message of "Thu, 23 Nov 2000 17:02:10 +0100." <Pine.LNX.4.21.0011231642110.32263-100000@svea.tellus>
>>>>> "Tobias" == Tobias Ringstrom <tori@tellus.mine.nu> writes:
Tobias> Btw, does anyone know of a C function that works like strncpy, but does
Tobias> add a terminating null character, event if the string does not fit, ro
Tobias> does one have to do str[5]=0 first, and then strncpy(str,src,4)?
str[0]=0;
strncat(str, src, 4);
Works as you want.
] Train travel features AC outlets with no take-off restrictions|gigabit is no[
] Michael Richardson, Solidum Systems Oh where, oh where has|problem with[
] mcr@solidum.com www.solidum.com the little fishy gone?|PAX.port 1100[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy"); [
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2000-11-23 23:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-23 16:02 Tobias Ringstrom
2000-11-23 16:37 ` Christoph Hellwig
2000-11-23 21:17 ` Michael Richardson [this message]
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=200011232117.eANLHo003458@sandelman.ottawa.on.ca \
--to=mcr@sandelman.ottawa.on.ca \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®