From 1a499ee138f5c44e423ab6a4bea3accffe4b1c5a Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 13 Feb 2015 15:35:32 -0500 Subject: [PATCH] Cortex: LoggingConsumer addon: fix crash on startup. Fixes #11855. --- .../cortex/addons/LoggingConsumer/LoggingConsumerAddOn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/cortex/addons/LoggingConsumer/LoggingConsumerAddOn.cpp b/src/apps/cortex/addons/LoggingConsumer/LoggingConsumerAddOn.cpp index e64a13212f..eba50ae223 100644 --- a/src/apps/cortex/addons/LoggingConsumer/LoggingConsumerAddOn.cpp +++ b/src/apps/cortex/addons/LoggingConsumer/LoggingConsumerAddOn.cpp @@ -80,10 +80,10 @@ status_t LoggingConsumerAddOn::GetFlavorAt( flavor_info* pInfo = new flavor_info; pInfo->internal_id = n; - strcpy(pInfo->name, "LoggingConsumer"); - strcpy(pInfo->info, "An add-on version of the LoggingConsumer node.\n" + pInfo->name = (char*)"LoggingConsumer"; + pInfo->info = (char*)"An add-on version of the LoggingConsumer node.\n" "See the Be Developer Newsletter III.18: 5 May, 1999\n" - "adapted by Eric Moon (4 June, 1999)"); + "adapted by Eric Moon (4 June, 1999)"; pInfo->kinds = B_BUFFER_CONSUMER | B_CONTROLLABLE; pInfo->flavor_flags = 0; pInfo->possible_count = 0;