--- kdesu/kdesud/kdesud.cpp.chmou Sun May 28 23:31:28 2000 +++ kdesu/kdesud/kdesud.cpp Sun May 28 23:31:41 2000 @@ -161,7 +161,8 @@ struct sockaddr_un addr; addr.sun_family = AF_UNIX; - strcpy(addr.sun_path, sock.c_str()); + strncpy(addr.sun_path, sock.c_str(), sizeof(addr.sun_path) - 1); + addr.sun_path[sizeof(addr.sun_path) - 1] = 0; addrlen = SUN_LEN(&addr); if (bind(sockfd, (struct sockaddr *)&addr, addrlen) < 0) { xerror("bind(): %s");