fixed a bug concerning load mesh from dialog
"buffer[pos] = 0" probably should be moved out of the if block, because if a user opens a dialog but press "ESC", then line 64 judgement fails. But "buffer[pos] = 0" should still be set, otherwise line 86 will not return an empty string.
Former-commit-id: 124e99ddcb7b422b6a59d54c14dabb0e8dd770c9