Fix strncmp, fread and fwrite in jerry-libc.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-06-15 21:14:46 +03:00
parent 630a1e8eba
commit 30277153b9
2 changed files with 20 additions and 4 deletions
+6
View File
@@ -197,6 +197,12 @@ int
strncmp (const char *s1, const char *s2, size_t n)
{
size_t i;
if (n == 0)
{
return 0;
}
if (s1 == NULL)
{
if (s2 != NULL)