- strcpy(action, "ACTION=");
- strfieldcat(action, msg->action);
- strcpy(devpath, "DEVPATH=");
- strfieldcat(devpath, msg->devpath);
+ snprintf(action, ACTION_SIZE-1, "ACTION=%s", msg->action);
+ action[ACTION_SIZE-1] = '\0';
+ snprintf(devpath, DEVPATH_SIZE-1, "DEVPATH=%s", msg->devpath);
+ devpath[DEVPATH_SIZE-1] = '\0';
+ sprintf(seqnum, "SEQNUM=%llu", msg->seqnum);