From 2ed098e8c7b087af9c4c2ab7491a584a853d1e19 Mon Sep 17 00:00:00 2001 From: tsauerbeck Date: Fri, 29 Oct 2004 17:21:14 +0000 Subject: [PATCH] made snprintf() return the number of characters written on success, as it advertises to do SVN revision: 12063 --- legacy/embryo/src/lib/embryo_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/embryo/src/lib/embryo_str.c b/legacy/embryo/src/lib/embryo_str.c index f4c1e30..3dd06c1 100644 --- a/legacy/embryo/src/lib/embryo_str.c +++ b/legacy/embryo/src/lib/embryo_str.c @@ -383,7 +383,7 @@ _embryo_str_snprintf(Embryo_Program *ep, Embryo_Cell *params) s2[o] = 0; STRSET(ep, params[1], s2); - return 0; + return strlen(s2); } static Embryo_Cell -- 2.7.4