summaryrefslogtreecommitdiff
path: root/selinux/sestatus.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-28 02:24:59 +0000
committerDenis Vlasenko2008-03-28 02:24:59 +0000
commitc4523c2b3da206312ed0b007a46eace58659ec31 (patch)
tree5d4f169b7de1d73e7948f2bf8ecad79df2f18c6b /selinux/sestatus.c
parent2570b2e5759e8ac32b0922d71056bd426caae9f1 (diff)
downloadbusybox-c4523c2b3da206312ed0b007a46eace58659ec31.zip
busybox-c4523c2b3da206312ed0b007a46eace58659ec31.tar.gz
fix a few stray unguarded strdup's
Diffstat (limited to 'selinux/sestatus.c')
-rw-r--r--selinux/sestatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/selinux/sestatus.c b/selinux/sestatus.c
index 43e31d4..ec39afc 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)
section = 2;
} else {
if (section == 1 && pc_ofs < npc -1) {
- pc[pc_ofs++] = strdup(buf);
+ pc[pc_ofs++] = xstrdup(buf);
pc[pc_ofs] = NULL;
} else if (section == 2 && fc_ofs < nfc - 1) {
- fc[fc_ofs++] = strdup(buf);
+ fc[fc_ofs++] = xstrdup(buf);
fc[fc_ofs] = NULL;
}
}