more sprintf removals
[citadel.git] / citadel / msgform.c
index f24bf8801b5ad5759da027f8845cd23511dbfabb..26de208eb009c31c0e943b1d902773f000003a38 100644 (file)
@@ -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