Commit 5d45b5c7 authored by Thomas Roessler's avatar Thomas Roessler

_Really_ fix an unset or too short StChars varialbe. (From Vikas.)

parent 9f72f728
......@@ -208,7 +208,9 @@ status_format_str (char *buf, size_t buflen, char op, const char *src,
(Context->changed || Context->deleted) ? 1 : 0);
}
if(!StChars || i >= strlen(StChars))
if (!StChars)
buf[0] = 0;
else if (i >= strlen(StChars))
buf[0] = StChars[0];
else
buf[0] = StChars[i];
......
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