From af6e865a076af031213f9afc488c28306d6bc3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 15 Apr 2013 20:36:56 +0200 Subject: [PATCH] test: fix process_title failing on linux Shorten the test string from 40 to 38 characters because the title length is limited to 39 characters. Truncation of long titles was introduced intentionally by commit a0c1d84 (see discussion in joyent/node#5006). --- test/test-process-title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-process-title.c b/test/test-process-title.c index 13d9dddf..5bf5db9f 100644 --- a/test/test-process-title.c +++ b/test/test-process-title.c @@ -43,7 +43,7 @@ static void set_title(const char* title) { TEST_IMPL(process_title) { /* Check for format string vulnerabilities. */ - set_title("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"); + set_title("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"); set_title("new title"); return 0; }