hrev44010 adds 1 changeset to branch 'master' old head: a73b93fb03e9615bd9deca9c32efd2aa1df87918 new head: fc85b72f84d05efa17f845022b6ab0301fb72e03 ---------------------------------------------------------------------------- fc85b72: Fix build [ John Scipione <jscipione@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev44010 Commit: fc85b72f84d05efa17f845022b6ab0301fb72e03 URL: http://cgit.haiku-os.org/haiku/commit/?id=fc85b72 Author: John Scipione <jscipione@xxxxxxxxx> Date: Thu Apr 12 07:11:09 2012 UTC ---------------------------------------------------------------------------- 1 files changed, 4 insertions(+), 3 deletions(-) src/preferences/3drendering/ExtensionsView.cpp | 7 ++++--- ---------------------------------------------------------------------------- diff --git a/src/preferences/3drendering/ExtensionsView.cpp b/src/preferences/3drendering/ExtensionsView.cpp index 6dfb7a6..4becba9 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);