summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2007-02-24 02:50:58 +0000
committerStanislav Malyshev <stas@php.net>2007-02-24 02:50:58 +0000
commitb415e3da5a3a384e6e645cda25fe564a7590fad8 (patch)
tree5496673c296368da21568daa1c5420a0d977285a /TSRM
parent33956fc3585b7816a3041fa470c1da226f3808a2 (diff)
downloadphp-git-b415e3da5a3a384e6e645cda25fe564a7590fad8.tar.gz
Unfortunately, VC does not have snprintf, and sprintf_s supported only in vc2005
Fortunately, we don't need it here too badly.
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 4d1d3d303a..b60be0cc9c 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -273,8 +273,8 @@ TSRM_API int shmget(int key, int size, int flags)
return -1;
}
- snprintf(shm_segment, sizeof(shm_segment), "TSRM_SHM_SEGMENT:%d", key);
- snprintf(shm_info, sizeof(shm_info), "TSRM_SHM_DESCRIPTOR:%d", key);
+ sprintf(shm_segment, "TSRM_SHM_SEGMENT:%d", key);
+ sprintf(shm_info, "TSRM_SHM_DESCRIPTOR:%d", key);
shm_handle = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, shm_segment);
info_handle = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, shm_info);