commit | fade75f1e2f2bda739214e079e27a50dadd61e64 | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Thu Jun 07 16:26:12 2012 -0400 |
committer | Eric Paris <eparis@redhat.com> | Thu Jun 28 13:29:15 2012 -0400 |
tree | b79f8825375a0cee1fad74a21dcfb8b1342e7030 | |
parent | a6c9140cbbe02c3dfb32798f9e5ba333297ba64b [diff] |
libsemanage: semanage_store: fix snprintf length argument by using asprintf We calculated a length, allocated a space for the string, then used snprintf to fill the array giving it a different length. Rather than doing all that math ourselves, just use asprintf and let libraries get it right. Signed-off-by: Eric Paris <eparis@redhat.com>