Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check the length of the description of the unit used in its summary. If the descripti...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 25 Jun 2008 07:47:59 +0000 (07:47 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 25 Jun 2008 07:47:59 +0000 (07:47 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5801 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/tesh2/src/unit.c

index 23985df..a3c5f18 100644 (file)
@@ -536,7 +536,7 @@ unit_summuarize(unit_t unit)
         return -1;\r
     }\r
        \r
-       if(unit->description)\r
+       if((unit->description) && strlen(unit->description) < 78)\r
                strcpy(title, unit->description);\r
        else\r
                sprintf(title, "file : %s",unit->fstream->name);\r