GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: a tiny graphical app kit for ruby
Homepage: http://code.whytheluckystiff.net/shoes
Clone URL: git://github.com/why/shoes.git
* shoes/internal.c: use _vsnprintf instead of _vsnprintf_s, no need to 
truncate.
why (author)
Wed Sep 26 16:27:17 -0700 2007
commit  8685da25a66ed2b435b0cd2036674ab34d7912a9
tree    ba7977a9eca89d78322fd569911461f07d3da031
parent  e7ea9605d4c9346695244d1cfcb465bdc2f02d3e
...
34
35
36
37
 
38
39
40
41
42
 
 
 
 
43
44
45
...
34
35
36
 
37
38
 
 
 
 
39
40
41
42
43
44
45
0
@@ -34,12 +34,12 @@ int
0
 shoes_snprintf(char* str, size_t size, const char* format, ...)
0
 {
0
   size_t count;
0
- va_list ap;
0
+ va_list args;
0
 
0
- va_start(ap, format);
0
- count = _vscprintf(format, ap);
0
- _vsnprintf_s(str, size, _TRUNCATE, format, ap);
0
- va_end(ap);
0
+ va_start(args, format);
0
+ count = _vscprintf(format, args);
0
+ _vsnprintf(str, size, format, args);
0
+ va_end(args);
0
 
0
   return count;
0
 }

Comments

    No one has commented yet.