Commit 17f0ee46 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: NULL terminate strings returned by _Getdays and _Getmonths.

parent dfeec5a2
......@@ -444,6 +444,7 @@ char* CDECL _Getdays(void)
memcpy(&out[size], cur->str[7+i], len);
size += len;
}
out[size] = '\0';
return out;
}
......@@ -478,6 +479,7 @@ char* CDECL _Getmonths(void)
memcpy(&out[size], cur->str[months_offset+12+i], len);
size += len;
}
out[size] = '\0';
return out;
}
......
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