> Do you have any actual usecase where the current buffer size is a > problem? If yes, I think it's better to increase the buffer size to > something more reasonable if possible than to mess around with static > variables.
It rarely causes problems. However, once it occurs, all subsequent input with the IME is ignored. Restarting st or IME will fix it. If this is fixed, I think it would be better to dynamically allocate a buffer of the requested size. If it is not fixed for the sake of code simplicity, the current size is sufficient.