From 12fe2249e1b32dc9033e2680017a4c7f236edaac Mon Sep 17 00:00:00 2001 From: Matt O'Gorman Date: Thu, 21 Sep 2017 21:41:19 -0400 Subject: [PATCH] Update nix-env.cc missing comma --- src/nix-env/nix-env.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc index 0da31588d..f6a9d9e7b 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());