diff options
Diffstat (limited to 'e2fsprogs/e2p/mntopts.c')
-rw-r--r-- | e2fsprogs/e2p/mntopts.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/e2fsprogs/e2p/mntopts.c b/e2fsprogs/e2p/mntopts.c index 6d0eca0ae..735260ce0 100644 --- a/e2fsprogs/e2p/mntopts.c +++ b/e2fsprogs/e2p/mntopts.c | |||
@@ -99,9 +99,7 @@ int e2p_edit_mntopts(const char *str, __u32 *mntopts, __u32 ok) | |||
99 | int neg; | 99 | int neg; |
100 | unsigned int mask; | 100 | unsigned int mask; |
101 | 101 | ||
102 | buf = malloc(strlen(str)+1); | 102 | buf = xmalloc(strlen(str)+1); |
103 | if (!buf) | ||
104 | return 1; | ||
105 | strcpy(buf, str); | 103 | strcpy(buf, str); |
106 | cp = buf; | 104 | cp = buf; |
107 | while (cp && *cp) { | 105 | while (cp && *cp) { |