mirror of https://github.com/xzeldon/htop.git
Properly brace macro arguments
This commit is contained in:
parent
aa8552ba88
commit
9a78155e17
|
@ -451,7 +451,7 @@ void Process_makeCommandStr(Process *this) {
|
|||
if (mc->highlightCount >= ARRAYSIZE(mc->highlights)) \
|
||||
continue; \
|
||||
\
|
||||
mc->highlights[mc->highlightCount].offset = str - strStart + _offset - mbMismatch; \
|
||||
mc->highlights[mc->highlightCount].offset = str - strStart + (_offset) - mbMismatch; \
|
||||
mc->highlights[mc->highlightCount].length = _length; \
|
||||
mc->highlights[mc->highlightCount].attr = _attr; \
|
||||
mc->highlights[mc->highlightCount].flags = _flags; \
|
||||
|
|
Loading…
Reference in New Issue