summaryrefslogtreecommitdiff
path: root/legacy/embryo/src/lib/embryo_str.c
diff options
context:
space:
mode:
authortsauerbeck <tsauerbeck>2004-10-29 17:21:14 +0000
committertsauerbeck <tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2004-10-29 17:21:14 +0000
commit2ed098e8c7b087af9c4c2ab7491a584a853d1e19 (patch)
tree8870caaa35ae89891e32db496c1a0d7158b15856 /legacy/embryo/src/lib/embryo_str.c
parentef62e4a5448fad942b024292317bd23a1949cd73 (diff)
made snprintf() return the number of characters written on success, as it advertises to do
SVN revision: 12063
Diffstat (limited to '')
-rw-r--r--legacy/embryo/src/lib/embryo_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/embryo/src/lib/embryo_str.c b/legacy/embryo/src/lib/embryo_str.c
index f4c1e306d2..3dd06c1328 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)
383 s2[o] = 0; 383 s2[o] = 0;
384 384
385 STRSET(ep, params[1], s2); 385 STRSET(ep, params[1], s2);
386 return 0; 386 return strlen(s2);
387} 387}
388 388
389static Embryo_Cell 389static Embryo_Cell