Index: apc.c =================================================================== RCS file: /repository/pecl/apc/apc.c,v retrieving revision 3.20 diff -u -r3.20 apc.c --- apc.c 9 Jan 2008 10:50:03 -0000 3.20 +++ apc.c 17 Mar 2008 16:34:33 -0000 @@ -331,7 +331,7 @@ /* not: [no active file] or no path */ memcpy(fileinfo->fullpath, exec_fname, exec_fname_length); fileinfo->fullpath[exec_fname_length] = DEFAULT_SLASH; - strcpy(fileinfo->fullpath +exec_fname_length +1, path_for_open); + strncpy(fileinfo->fullpath +exec_fname_length +1, path_for_open, (sizeof(fileinfo->fullpath)-exec_fname_length-1)); /* apc_wprint("filename: %s, exec_fname: %s, fileinfo->fullpath: %s", path_for_open, exec_fname, fileinfo->fullpath); */ if (APC_URL_STAT(wrapper, fileinfo->fullpath, &fileinfo->st_buf) == 0) { found = 1;