Commit b84ebfd4 authored by coypoop's avatar coypoop Committed by Hisham Muhammad
Browse files

Clarify we are looking for the null termination

Not for a comparison to zero
parent b86e14d3
......@@ -152,7 +152,7 @@ int Meter_humanUnit(char* buffer, unsigned long int value, int size) {
if (value / 1024 < powi)
break;
if (prefix[1] == 0)
if (prefix[1] == '\0')
break;
powi *= 1024;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment