diff --git a/CImg.h b/CImg.h
index 2dfb60ce5e4c3047768e3f8fa9c90f40dbad6c4c..db4c170315426326bff793d1372676896b445a15 100644
--- a/CImg.h
+++ b/CImg.h
@@ -19791,7 +19791,7 @@ namespace cimg_library_suffixed {
         CImg<charT> res;
         if (_cimg_mp_is_vector(arg)) { // Vector
           CImg<charT>::string("vectorXXXXXXXXXXXXXXXX").move_to(res);
-          std::sprintf(res._data + 6,"%u",_cimg_mp_size(arg));
+          cimg_sprintf(res._data + 6,"%u",_cimg_mp_size(arg));
         } else CImg<charT>::string("scalar").move_to(res);
         return res;
       }