~serge-hallyn/ubuntu/quantal/lxc/lxc-fixapi

« back to all changes in this revision

Viewing changes to src/lxc/monitor.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-07-07 13:53:52 UTC
  • mfrom: (1.2.7 upstream)
  • mto: (3.1.15 sid)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: james.westby@ubuntu.com-20110707135352-2e27007vciicu4gf
Tags: upstream-0.7.4.2
ImportĀ upstreamĀ versionĀ 0.7.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        struct lxc_msg msg = { .type = lxc_msg_state,
71
71
                               .value = state };
72
72
        strncpy(msg.name, name, sizeof(msg.name));
 
73
        msg.name[sizeof(msg.name) - 1] = 0;
73
74
 
74
75
        lxc_monitor_send(&msg);
75
76
}