gcrypt windows build

Werner Koch wk at gnupg.org
Sat Dec 19 13:57:06 CET 2009


On Fri, 18 Dec 2009 16:23:34 +0100, Simon Josefsson wrote:
> Interesting!  I believe I was able to reproduce the problem, now
> reported too:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561599

There is another bug report as weel.  Hwoever I can't remember the
number.  FWIW, here is a little test program:


#include <stdio.h>

main ()
{
  unsigned long foo = 42;
  char buf[50];

  snprintf (buf, sizeof buf, "->%lu<-", 42);
  if (strcmp (buf, "->42<-"))
    {
      fputs ("snprintf is broken\n", stderr);
      return 1;
    }
  else
    {
      fputs ("snprintf is okay\n", stderr);
    }
  return 0;
}



Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gcrypt-devel mailing list