os: document pnprintf as sigsafe snprintf

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 44fc062f85)
This commit is contained in:
Peter Hutterer 2013-02-18 14:57:58 +10:00
parent 8318d6a89c
commit 00b8d11daf

View file

@ -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)
{