HomeClusterLabs Projects

totemconfig.c: don't hard-code "128"...

Description

totemconfig.c: don't hard-code "128"...

  • exec/totemconfig.c (read_keyfile): Don't hard-code "128".

Use sizeof(...) instead.
Avoid duplicate "close(fd)" calls.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2039 fd59a12c-fef9-0310-b244-a6a79926bd2f

Details

Provenance
Jim Meyering <jim@meyering.net>Authored on Apr 8 2009, 1:29 PM
Parents
rC4995054ca249: totemconfig.c: don't let a key of length > 128 clobber memory
Branches
Unknown
Tags
Unknown

Event Timeline