From cd4b0519abc0f6b2b3b37e3d2adc6b1359644023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 8 Jul 2005 04:54:26 +0000 Subject: [PATCH] Check a very simple format string git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15590 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/snprintf-test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/roken/snprintf-test.c b/lib/roken/snprintf-test.c index 222adaeaf..f39e86ec0 100644 --- a/lib/roken/snprintf-test.c +++ b/lib/roken/snprintf-test.c @@ -233,6 +233,12 @@ test_length (void) return ch != 'a'; } +static int +test_simple (void) +{ + return try(""); +} + int main (int argc, char **argv) { @@ -245,5 +251,7 @@ main (int argc, char **argv) #endif ret += test_null (); ret += test_length (); + ret += test_simple(); + return ret; }