diff --git a/bootstrap.conf b/bootstrap.conf index 9964231bb7..9ca1e6ddd7 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -96,7 +96,6 @@ snprintf socket stat-time stdarg -stpcpy strchrnul strdup-posix strndup diff --git a/src/util/virerror.c b/src/util/virerror.c index 77f76a9abf..3bb9d1d32c 100644 --- a/src/util/virerror.c +++ b/src/util/virerror.c @@ -1367,8 +1367,9 @@ void virReportSystemErrorFull(int domcode, size_t len = strlen(errnoDetail); if (0 <= n && n + 2 + len < sizeof(msgDetailBuf)) { - char *p = msgDetailBuf + n; - stpcpy(stpcpy(p, ": "), errnoDetail); + strcpy(msgDetailBuf + n, ": "); + n += 2; + strcpy(msgDetailBuf + n, errnoDetail); msgDetail = msgDetailBuf; } }