update ppc
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 17 May 2006 19:22:14 +0000 (19:22 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 17 May 2006 19:22:14 +0000 (19:22 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1826 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/tracefile.c

index f28a1b21e25c5414ae798739a4a8498c15c161dc..3f52411ded98b0d980fcc97fcce2330df3348114 100644 (file)
@@ -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<raw_name_len;i++) {
This page took 0.025982 seconds and 4 git commands to generate.