about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatt O'Gorman <mog-lists@rldn.net>2017-09-22T01·41-0400
committerMatthew O'Gorman <mog@rldn.net>2018-03-02T02·47-0500
commit12fe2249e1b32dc9033e2680017a4c7f236edaac (patch)
treece2004c5a2029c8acb6cac6652daddfecd6c9a81 /src
parent0312d30315a3a77ab659b742b76ec32685145715 (diff)
Update nix-env.cc
missing comma
Diffstat (limited to 'src')
-rw-r--r--src/nix-env/nix-env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index 0da31588d23b..f6a9d9e7b7c2 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -1287,7 +1287,7 @@ static void opDeleteGenerations(Globals & globals, Strings opFlags, Strings opAr
     } else if (opArgs.size() == 1 && opArgs.front().find('+') != string::npos) {
         if(opArgs.front().size() < 2)
             throw Error(format("invalid number of generations ‘%1%’") % opArgs.front());
-        string str_max = string(opArgs.front() 1, opArgs.front().size());
+        string str_max = string(opArgs.front(), 1, opArgs.front().size());
         int max;
         if (!string2Int(str_max, max) || max == 0)
             throw Error(format("invalid number of generations to keep ‘%1%’") % opArgs.front());