[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nuke strncpy

From: Jim Meyering
Subject: nuke strncpy
Date: Thu, 3 May 2012 23:18:28 +0200

I noticed that there were some unnecessary uses of strncpy in bison.
The first patch removes them.
Along the way I noticed a 3-line xmalloc+memcpy+zero-one-byte sequence
that can be replaced by a single-line xstrdup use.  That's #2.
And #3 merely regenerates parse-gram.[ch].

[PATCH 1/3] maint: s/strncpy/memcpy/, when equivalent
[PATCH 2/3] maint: simplify parse-gram.y
[PATCH 3/3] maint: regen src/parse-gram.[ch]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]