msvcrt: NULL terminate strings returned by _Getdays and _Getmonths.

This commit is contained in:
Piotr Caban 2011-12-28 16:29:07 +01:00 committed by Alexandre Julliard
parent dfeec5a2bf
commit 17f0ee4622

View File

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