logo       

Re: cvs: TSRM(PHP_5_2) / tsrm_win32.c: msg#00050

Subject: Re: cvs: TSRM(PHP_5_2) / tsrm_win32.c
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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe