diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-log2xml/log2xml.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-log2xml/log2xml.cc b/src/nix-log2xml/log2xml.cc index 6645dc500fed..e26fb0023641 100644 --- a/src/nix-log2xml/log2xml.cc +++ b/src/nix-log2xml/log2xml.cc @@ -137,7 +137,7 @@ void Decoder::finishLine() if (line[i] == '<') cout << "<"; else if (line[i] == '&') cout << "&"; else if (line[i] == '\r') ; /* ignore carriage return */ - else if (line[i] < 32 && line[i] != 9) cout << "�"; + else if (line[i] >= 0 && line[i] < 32 && line[i] != 9) cout << "�"; else if (i + sz + 33 < line.size() && string(line, i, sz) == storeDir && line[i + sz + 32] == '-') |