--- libaitrpc/src/builtin.c 2011/08/19 09:20:46 1.2.4.3 +++ libaitrpc/src/builtin.c 2011/08/19 14:13:31 1.2.4.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: builtin.c,v 1.2.4.3 2011/08/19 09:20:46 misho Exp $ +* $Id: builtin.c,v 1.2.4.4 2011/08/19 14:13:31 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -120,8 +120,8 @@ rpcServerCalls(rpc_func_t *call, int ic, rpc_val_t *iv for (f = srv->srv_funcs, v = vals; f; f = f->func_next) { if (*f->func_name) { - memset(str, 0, MAXPATHLEN); - snprintf(str, MAXPATHLEN, "/%s/%s()", f->func_file, f->func_name); + memset(str, 0, sizeof str); + snprintf(str, sizeof str, "/%s/%s()", f->func_file, f->func_name); RPC_SET_STR(v++, str); } }