Fix #117709: Crash with single point NURBS curve
commitd00130220064d8ce7cdaf1cca1ea56c9fbaefb0e
authorHans Goudey <hans@blender.org>
Tue, 2 Apr 2024 21:44:49 +0000 (2 17:44 -0400)
committerHans Goudey <hans@blender.org>
Tue, 2 Apr 2024 21:44:49 +0000 (2 17:44 -0400)
treeb6d118a66917e9104c24be8d1d508f89ae450b84
parentbf2b684913dc8540f87df6188fed95539d65fddb
Fix #117709: Crash with single point NURBS curve

The root of the issue seems to be calling `BLI_snprintf` with the
wrong number of arguments in the `MorePointsForBezierRequired`
case. The fix arguably makes things simpler anyway: just use a
separate call in each case of the switch.
source/blender/blenkernel/intern/curve.cc