git: sbin/hammer: Fix strncpy(3) length

Tomohiro Kusumi tkusumi at
Sun Sep 24 09:34:12 PDT 2017

commit 1ec4d15f586ac3193c2add8ec1c5001e2967bfc8
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Sun Sep 24 18:22:28 2017 +0300

    sbin/hammer: Fix strncpy(3) length
    The last one is ok, but HAMMER userspace doesn't use strl variants
    except for this, then just use strncpy(3) for better portability.

Summary of changes:
 sbin/hammer/cmd_volume.c | 4 ++--
 sbin/hammer/misc.c       | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list