Commit 65f48429 authored by Sergey Lyubka's avatar Sergey Lyubka

got rid of multiline comment

parent 77db8996
...@@ -1277,7 +1277,7 @@ static void to_wchar(const char *path, wchar_t *wbuf, size_t wbuf_len) { ...@@ -1277,7 +1277,7 @@ static void to_wchar(const char *path, wchar_t *wbuf, size_t wbuf_len) {
strncpy(buf, path, sizeof(buf)); strncpy(buf, path, sizeof(buf));
buf[sizeof(buf) - 1] = '\0'; buf[sizeof(buf) - 1] = '\0';
// Trim trailing slashes. Leave backslash for paths like X:\ // Trim trailing slashes. Leave backslash for paths like "X:\"
p = buf + strlen(buf) - 1; p = buf + strlen(buf) - 1;
while (p > buf && p[-1] != ':' && (p[0] == '\\' || p[0] == '/')) *p-- = '\0'; while (p > buf && p[-1] != ':' && (p[0] == '\\' || p[0] == '/')) *p-- = '\0';
......
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