made snprintf() return the number of characters written on success, as it advertises to do

SVN revision: 12063
This commit is contained in:
tsauerbeck 2004-10-29 17:21:14 +00:00 committed by tsauerbeck
parent ef62e4a544
commit 2ed098e8c7
1 changed files with 1 additions and 1 deletions

View File

@ -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