Messages in this thread | | | Subject | Re: generic strncpy - off-by-one error | From | Bernd Petrovitsch <> | Date | 12 Aug 2003 18:24:36 +0200 |
| |
>I don't see any problem with this code, and if we don't need to >NULL-pad the dest string, we do not have to. It is not in the >definition of strncpy().
Wrong: http://www.opengroup.org/onlinepubs/007908799/xsh/strncpy.html
Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |