diff options
Diffstat (limited to 'selinux')
-rw-r--r-- | selinux/sestatus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/selinux/sestatus.c b/selinux/sestatus.c index 43e31d455..ec39afc21 100644 --- a/selinux/sestatus.c +++ b/selinux/sestatus.c | |||
@@ -78,10 +78,10 @@ static void read_config(char **pc, int npc, char **fc, int nfc) | |||
78 | section = 2; | 78 | section = 2; |
79 | } else { | 79 | } else { |
80 | if (section == 1 && pc_ofs < npc -1) { | 80 | if (section == 1 && pc_ofs < npc -1) { |
81 | pc[pc_ofs++] = strdup(buf); | 81 | pc[pc_ofs++] = xstrdup(buf); |
82 | pc[pc_ofs] = NULL; | 82 | pc[pc_ofs] = NULL; |
83 | } else if (section == 2 && fc_ofs < nfc - 1) { | 83 | } else if (section == 2 && fc_ofs < nfc - 1) { |
84 | fc[fc_ofs++] = strdup(buf); | 84 | fc[fc_ofs++] = xstrdup(buf); |
85 | fc[fc_ofs] = NULL; | 85 | fc[fc_ofs] = NULL; |
86 | } | 86 | } |
87 | } | 87 | } |