From 61a02d969e63ae3e5080bca625286737e2c10880 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 17 May 2006 19:22:14 +0000 Subject: [PATCH] update ppc git-svn-id: http://ltt.polymtl.ca/svn@1826 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/tracefile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index f28a1b21..3f52411d 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -664,6 +664,7 @@ int get_tracefile_name_number(gchar *raw_name, if(i==-1) { /* Either not found or name length is 0 */ /* This is a userspace tracefile */ strncpy(char_name, raw_name, raw_name_len); + char_name[raw_name_len] = '\0'; *name = g_quark_from_string(char_name); *num = 0; /* unknown cpu */ for(i=0;i