Commit 4e655bd3 authored by houkime's avatar houkime

cnv_readwbl: accouunt for zero string length possibility

parent d87c5d65
......@@ -1278,7 +1278,7 @@ char* CnvReadWbl::flags_to_string(int value)
strcat(str, "RtHide|");
if (value & pwr_mAdef_devhidevalue)
strcat(str, "DevHideValue|");
if (str[strlen(str) - 1] == '|')
if (strlen(str) && str[strlen(str) - 1] == '|')
str[strlen(str) - 1] = 0;
return str;
}
......
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