aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-04-10 21:27:39 -0600
committerQyriad <qyriad@qyriad.me>2024-04-15 23:09:40 +0000
commita41abb4594d951339d3b4346251ddbc5364c0a04 (patch)
treeaa5eef4a2af40474e1fe75ef26a365183bf17cff
parent4e68deef809c67ff3d75089d43f0d62017a1122f (diff)
fix probable format bug in DerivationGoal::buildDone
Either the contents of `line` could cause format errors, or this usage is Technically safe. However, I trust nothing, especially with boost::format. Change-Id: I07933b20bde3b305a6e5d61c2a7bab6ecb042ad9
-rw-r--r--src/libstore/build/derivation-goal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index f879a580e..faebd3c43 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -1009,7 +1009,7 @@ void DerivationGoal::buildDone()
if (diskFull)
msg += "\nnote: build failure may have been caused by lack of free disk space";
- throw BuildError(msg);
+ throw BuildError("%s", msg);
}
/* Compute the FS closure of the outputs and register them as