about summary refs log tree commit diff
path: root/src/nix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix.cc')
-rw-r--r--src/nix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix.cc b/src/nix.cc
index de60c28c5543..f8e019eb4a2f 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -155,7 +155,7 @@ static void opQuery(Strings opFlags, Strings opArgs)
 
             for (FSIds::iterator i = genIds.begin(); 
                  i != genIds.end(); i++)
-                cout << format("%s\n") % (string) *i;
+                cout << format("%s\n") % expandId(*i);
             break;
         }