Revision 9450a425

View differences:

som/Tests/topology_test_attr.c
59 59
        my_addr = iface_addr(optarg);
60 60
        break;
61 61
      case 'c':
62
        sprintf(my_attr.colour, optarg);
62
        strcpy(my_attr.colour, optarg);
63 63
        break;
64 64
      case 'S':
65 65
        my_attr.state = sleep;
......
86 86
    return NULL;
87 87
  }
88 88

  
89
  sprintf(my_attr.name, node_addr(myID));
89
  strcpy(my_attr.name, node_addr(myID));
90 90
  topInit(myID, &my_attr, sizeof(struct peer_attributes), "");
91 91

  
92 92
  return myID;

Also available in: Unified diff