From: compudj Date: Wed, 17 May 2006 19:22:14 +0000 (+0000) Subject: update ppc X-Git-Tag: v0.12.20~1663 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=61a02d969e63ae3e5080bca625286737e2c10880;p=lttv.git update ppc git-svn-id: http://ltt.polymtl.ca/svn@1826 04897980-b3bd-0310-b5e0-8ef037075253 --- 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