projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2232452
)
repart: Fix memory corruption
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 11 Sep 2024 15:51:20 +0000
(17:51 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 11 Sep 2024 15:52:20 +0000
(17:52 +0200)
src/partition/repart.c
patch
|
blob
|
history
diff --git
a/src/partition/repart.c
b/src/partition/repart.c
index db746dc740ded7aed82699d5b50b801255be9ea6..f3c09b6f4f40c4422441e5714b7ad35a1587e4ba 100644
(file)
--- a/
src/partition/repart.c
+++ b/
src/partition/repart.c
@@
-1788,9
+1788,10
@@
static int config_parse_subvolumes(
if (r == 0)
return 0;
- r = extract_many_words((const char **) &word, ":", EXTRACT_UNQUOTE|EXTRACT_DONT_COALESCE_SEPARATORS, &path, &f);
+ const char *q = word;
+ r = extract_many_words(&q, ":", EXTRACT_UNQUOTE|EXTRACT_DONT_COALESCE_SEPARATORS, &path, &f);
if (r < 0) {
- log_syntax(unit, LOG_WARNING, filename, line, r, "Invalid syntax, ignoring: %s",
word
);
+ log_syntax(unit, LOG_WARNING, filename, line, r, "Invalid syntax, ignoring: %s",
q
);
continue;
}