|
From: | Ralph Corderoy |
Subject: | Re: [Nmh-workers] strncpy(3), die, die, die. |
Date: | Sat, 29 Oct 2016 17:42:46 +0100 |
Hi Ken, > > strncpy(sm_reply.text, str, sizeof(sm_reply.text)); > > sm_reply.text[sizeof(sm_reply.text) - 1] = '\0'; > > If this is what I think it is ... you know, I think this truncation is > benign. Could be. I just picked one at random to show a typical call-site pattern. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy
[Prev in Thread] | Current Thread | [Next in Thread] |