X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmsgform.c;h=26de208eb009c31c0e943b1d902773f000003a38;hb=cdd434a295973b2ffd4ccad4f878f8fd373ed819;hp=f24bf8801b5ad5759da027f8845cd23511dbfabb;hpb=c134c0441f361cfe78ae5579cfb83f2b295713a0;p=citadel.git diff --git a/citadel/msgform.c b/citadel/msgform.c index f24bf8801..26de208eb 100644 --- a/citadel/msgform.c +++ b/citadel/msgform.c @@ -47,7 +47,7 @@ char *strerror(int e) { static char buf[32]; - sprintf(buf,"errno = %d",e); + snprintf(buf, sizeof buf, "errno = %d",e); return(buf); } #endif