mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-05 22:08:23 +00:00
got rid of multiline comment
This commit is contained in:
1 parent
77db89961b
commit
65f484291f
1 file changed
+1
-1
+1
-1
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user