aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/Makefile.inc
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-05-04 23:37:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-05-04 23:39:52 +0200
commit812da4190f8ac2f548f3bea09b85164b78d33347 (patch)
tree05918f43143c365d87ae0d85d41b89096278aba3 /tests/unit/Makefile.inc
parent312f36d453c763d96470d5d4cebd8aae28efe5dc (diff)
mprintf: allow %.s with data not being zero terminated
If the precision is indeed shorter than the string, don't strlen() to find the end because that's not how the precision operator works. I also added a unit test for curl_msnprintf to make sure this works and that the fix doesn't a few other basic use cases. I found a POSIX compliance problem that I marked TODO in the unit test, and I figure we need to add more tests in the future. Reported-by: Török Edwin
Diffstat (limited to 'tests/unit/Makefile.inc')
-rw-r--r--tests/unit/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/Makefile.inc b/tests/unit/Makefile.inc
index 75bf45abb..526ec1fbd 100644
--- a/tests/unit/Makefile.inc
+++ b/tests/unit/Makefile.inc
@@ -6,7 +6,7 @@ UNITFILES = curlcheck.h \
# These are all unit test programs
UNITPROGS = unit1300 unit1301 unit1302 unit1303 unit1304 unit1305 unit1307 \
- unit1308 unit1309 unit1330 unit1394 unit1395 unit1396 unit1397
+ unit1308 unit1309 unit1330 unit1394 unit1395 unit1396 unit1397 unit1398
unit1300_SOURCES = unit1300.c $(UNITFILES)
unit1300_CPPFLAGS = $(AM_CPPFLAGS)
@@ -52,3 +52,7 @@ unit1396_CPPFLAGS = $(AM_CPPFLAGS)
unit1397_SOURCES = unit1397.c $(UNITFILES)
unit1397_CPPFLAGS = $(AM_CPPFLAGS)
+
+unit1398_SOURCES = unit1398.c $(UNITFILES)
+unit1398_CPPFLAGS = $(AM_CPPFLAGS)
+