if (aclient || aviceid) {
if (aclient) {
- strcpy(aclient->cell, cellp);
+ strlcpy(aclient->cell, cellp, sizeof(aclient->cell));
aclient->instance[0] = 0;
}
tp += temp; /* skip clear token itself */
tp += sizeof(afs_int32); /* skip primary flag */
/* tp now points to the cell name */
- strcpy(aserver->cell, tp);
+ strlcpy(aserver->cell, tp, sizeof(aserver->cell));
aserver->instance[0] = 0;
strcpy(aserver->name, "afs");
#endif /* NO_AFS_CLIENT */