Chameleon

Chameleon Commit Details

Date:2015-03-12 04:29:14 (4 years 8 months ago)
Author:ErmaC
Commit:2618
Parents: 2617
Message:More strncmp (xml.c and gui.c)
Changes:
M/trunk/i386/boot2/gui.c
M/trunk/i386/libsaio/xml.c

File differences

trunk/i386/libsaio/xml.c
390390
391391
392392
393
393
394394
395395
396396
......
403403
404404
405405
406
406
407407
408408
409409
410410
411411
412
412
413413
414414
415415
......
478478
479479
480480
481
481
482482
483483
484484
......
552552
553553
554554
555
555
556556
557557
558558
559559
560560
561
561
562562
563563
564564
......
570570
571571
572572
573
573
574574
575575
576576
......
578578
579579
580580
581
581
582
582583
583584
584585
......
587588
588589
589590
590
591
591
592
593
592594
593595
594596
......
596598
597599
598600
599
601
600602
601603
602604
// return-via-reference tag should be left alone
}
/***** dict ****/
else if (!strcmp(tagName, kXMLTagDict))
else if (!strncmp(tagName, kXMLTagDict, sizeof(kXMLTagDict)))
{
length = ParseTagList(buffer + pos, tag, kTagTypeDict, 0);
}
length = ParseTagList(buffer + pos, tag, kTagTypeDict, 0);
}
/***** key ****/
else if (!strcmp(tagName, kXMLTagKey))
else if (!strncmp(tagName, kXMLTagKey, sizeof(kXMLTagKey)))
{
length = ParseTagKey(buffer + pos, tag);
}
/***** string ****/
else if (!strcmp(tagName, kXMLTagString))
else if (!strncmp(tagName, kXMLTagString, sizeof(kXMLTagString)))
{
length = ParseTagString(buffer + pos, tag);
}
}
/***** integer ****/
else if (!strcmp(tagName, kXMLTagInteger))
else if (!strncmp(tagName, kXMLTagInteger, sizeof(kXMLTagInteger)))
{
length = ParseTagInteger(buffer + pos, tag);
}
/***** false ****/
else if (!strcmp(tagName, kXMLTagFalse))
else if (!strncmp(tagName, kXMLTagFalse, sizeof(kXMLTagFalse)))
{
length = ParseTagBoolean(buffer + pos, tag, kTagTypeFalse);
}
/***** true ****/
else if (!strcmp(tagName, kXMLTagTrue))
else if (!strncmp(tagName, kXMLTagTrue, sizeof(kXMLTagTrue)))
{
length = ParseTagBoolean(buffer + pos, tag, kTagTypeTrue);
}
/***** data ****/
else if (!strcmp(tagName, kXMLTagData))
else if (!strncmp(tagName, kXMLTagData, sizeof(kXMLTagData)))
{
length = ParseTagData(buffer + pos, tag);
}
{
length = ParseTagData(buffer + pos, tag);
}
else if (!strcmp(tagName, kXMLTagDate))
else if (!strncmp(tagName, kXMLTagDate, sizeof(kXMLTagDate)))
{
length = ParseTagDate(buffer + pos, tag);
}
else if (!strncmp(tagName, kXMLTagDate " ", strlen(kXMLTagDate " ")))
{
length = ParseTagDate(buffer + pos, tag);
}/***** array ****/
else if (!strcmp(tagName, kXMLTagArray))
}
/***** array ****/
else if (!strncmp(tagName, kXMLTagArray, sizeof(kXMLTagArray) ))
{
length = ParseTagList(buffer + pos, tag, kTagTypeArray, 0);
}
{
length = ParseTagList(buffer + pos, tag, kTagTypeArray, 0);
}
else if (!strcmp(tagName, kXMLTagArray "/"))
else if (!strncmp(tagName, kXMLTagArray "/", strlen(kXMLTagArray "/")))
{
length = ParseTagList(buffer + pos, tag, kTagTypeArray, 1);
}
trunk/i386/boot2/gui.c
657657
658658
659659
660
660
661661
662662
663663
gui.layout = HorizontalLayout;
if(getValueForKey( "devices_layout", &string, &len, theme))
{
if (!strcmp (string, "vertical"))
if (!strncmp (string, "vertical",sizeof("vertical")))
{
gui.layout = VerticalLayout;
}

Archive Download the corresponding diff file

Revision: 2618