From: quasar Date: Mon, 5 Nov 2007 11:55:02 +0000 (+0000) Subject: one more buf fix to simdag prop X-Git-Tag: v3.3~854 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/80547b28868bca7be177eff8b4629e94ff48f580 one more buf fix to simdag prop git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4967 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/simdag/properties/sd_prop.c b/examples/simdag/properties/sd_prop.c index 131d9f0fad..842d3ac253 100755 --- a/examples/simdag/properties/sd_prop.c +++ b/examples/simdag/properties/sd_prop.c @@ -73,7 +73,7 @@ int main(int argc, char **argv) { } /* Modify an existing property test. First check it exists */\ - INFO0("Modify an host existing property"); + INFO0("Modify an existing property"); char exist[]="Hdd"; value = SD_workstation_get_property_value(w2,exist); if ( value == NULL) @@ -111,8 +111,8 @@ int main(int argc, char **argv) { INFO3("\tLink %s property: %s has value: %s",SD_link_get_name(route[i]),key,data); /* Try to get a property that does not exist */ - noexist=xbt_strdup("Other"); - value = SD_link_get_property_value(route[i], noexist); + char noexist1="Other"; + value = SD_link_get_property_value(route[i], noexist1); if ( value == NULL) INFO2("\tProperty: %s for link %s is undefined", noexist, SD_link_get_name(route[i])); else