Hello Stanislav,
hmm true, maybe i should have compiled with msvc yesterday. Anyway thanks
a lot for the heads up.
best regards
marcus
Saturday, February 24, 2007, 3:50:58 AM, you wrote:
> stas Sat Feb 24 02:50:58 2007 UTC
> Modified files: (Branch: PHP_5_2)
> /TSRM tsrm_win32.c
> Log:
> Unfortunately, VC does not have snprintf, and sprintf_s supported only in
> vc2005
> Fortunately, we don't need it here too badly.
>
>
> http://cvs.php.net/viewvc.cgi/TSRM/tsrm_win32.c?r1=1.27.2.1.2.3&r2=1.27.2.1.2.4&diff_format=u
> Index: TSRM/tsrm_win32.c
> diff -u TSRM/tsrm_win32.c:1.27.2.1.2.3 TSRM/tsrm_win32.c:1.27.2.1.2.4
> --- TSRM/tsrm_win32.c:1.27.2.1.2.3 Sat Feb 24 02:17:23 2007
> +++ TSRM/tsrm_win32.c Sat Feb 24 02:50:58 2007
> @@ -16,7 +16,7 @@
> +----------------------------------------------------------------------+
> */
>
> -/* $Id: tsrm_win32.c,v 1.27.2.1.2.3 2007/02/24 02:17:23 helly Exp $ */
> +/* $Id: tsrm_win32.c,v 1.27.2.1.2.4 2007/02/24 02:50:58 stas Exp $ */
>
> #include <stdio.h>
> #include <fcntl.h>
> @@ -273,8 +273,8 @@
> 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);
Best regards,
Marcus
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|