summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-02-18 14:57:58 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-03-06 09:23:20 +1000
commit44fc062f85df7288c17d2d64b73aa4957b91fd6d (patch)
tree5f9633e63761e0cbeb26786bd5b7891f428f57f7 /os
parentc100211034ab69ce453a1644fb61c6808d7e3eda (diff)
os: document pnprintf as sigsafe snprintf
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'os')
-rw-r--r--os/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/log.c b/os/log.c
index 95bd8cca9..dc6e2888b 100644
--- a/os/log.c
+++ b/os/log.c
@@ -279,6 +279,10 @@ LogSetParameter(LogParameter param, int value)
}
}
+/**
+ * Signal-safe snprintf, with some limitations over snprintf. Be careful
+ * which directives you use.
+ */
static int
pnprintf(char *string, size_t size, const char *f, va_list args)
{