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
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}