Root/
Source at commit 1406 created 12 years 10 months ago. By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode. Added some comments about it too. | |
---|---|
1 | /*␊ |
2 | * snprintf.c␊ |
3 | */␊ |
4 | ␊ |
5 | #include <stdio.h>␊ |
6 | #include <stdarg.h>␊ |
7 | ␊ |
8 | extern int vsnprintf(char *buffer, size_t n, const char *format, va_list ap);␊ |
9 | ␊ |
10 | int snprintf(char *buffer, size_t n, const char *format, ...)␊ |
11 | {␊ |
12 | ␉va_list ap;␊ |
13 | ␉int rv;␊ |
14 | ␊ |
15 | ␉va_start(ap, format);␊ |
16 | ␉rv = vsnprintf(buffer, n, format, ap);␊ |
17 | ␉va_end(ap);␊ |
18 | ␉return rv;␊ |
19 | }␊ |
20 |