Fix build

This commit is contained in:
John Scipione 2012-04-12 03:11:09 -04:00
parent a73b93fb03
commit fc85b72f84

View File

@ -70,11 +70,12 @@ ExtensionsView::~ExtensionsView()
void
ExtensionsView::_AddExtensionsList(BColumnListView* fExtensionsList, char* stringList)
{
if (stringList == NULL)
// empty extentions string
if (stringList == NULL) {
// empty extensions string
return;
}
while (*stringList != NULL) {
while (*stringList != '\0') {
char extName[255];
int n = strcspn(stringList, " ");
strncpy(extName, stringList, n);