-/*
- * msg_process_instr.c
- *
- * Created on: Feb 24, 2010
- * Author: Lucas Schnorr
- * License: This program is free software; you can redistribute
- * it and/or modify it under the terms of the license
- * (GNU LGPL) which comes with this package.
- *
- * Copyright (c) 2009 The SimGrid team.
- */
+/* Copyright (c) 2010. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#include "instr/private.h"
if (!IS_TRACING) return;
//set process category
- process->category = xbt_new (char, strlen (category)+1);
- strncpy (process->category, category, strlen(category)+1);
+ process->category = xbt_strdup(category);
//create container of type "PROCESS" to indicate location
__TRACE_msg_process_location (process);