diff --git a/ProcessUNIX.c b/ProcessUNIX.c
index 4e31af759b32d7b994c8f9727cadc7f2fc21e576..5f1657e80a41260147a2ecdc5ffc4ac7e8923776 100644
--- a/ProcessUNIX.c
+++ b/ProcessUNIX.c
@@ -1739,7 +1739,7 @@ static void kwsysProcessKill(pid_t process_id)
     char fname[4096];
 #endif
     const int bufferSize = 1024;
-    char buffer[bufferSize+1];
+    char buffer[1025];  // should be buffersize +1 but fails to build on hp cc
     struct dirent* d;
 
     /* Each process has a directory in /proc whose name is the pid.