From fc85b72f84d05efa17f845022b6ab0301fb72e03 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 12 Apr 2012 03:11:09 -0400 Subject: [PATCH] Fix build --- src/preferences/3drendering/ExtensionsView.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/preferences/3drendering/ExtensionsView.cpp b/src/preferences/3drendering/ExtensionsView.cpp index 6dfb7a6761..4becba91c6 100644 --- a/src/preferences/3drendering/ExtensionsView.cpp +++ b/src/preferences/3drendering/ExtensionsView.cpp @@ -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);