diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:13 +0300 |
commit | 1bde690e91ab0b27e0da816c7ebcf98ad6459bb6 (patch) | |
tree | 46eab45da7b0c8fa5808652c58e8929316ed270a /source/blender/editors/interface/interface_ops.c | |
parent | fe7812f7c24f4c89cd1d046abc87daad545c2d48 (diff) |
Cleanup: style, use braces for editor/interface
Diffstat (limited to 'source/blender/editors/interface/interface_ops.c')
-rw-r--r-- | source/blender/editors/interface/interface_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 97dd79864e1..e00ea2d16bd 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -1313,8 +1313,9 @@ static void edittranslation_find_po_file(const char *root, const char *uilng, ch tc = strchr(uilng, '_'); if (tc) { szt = tc - uilng; - if (szt < sizeof(tstr)) /* Paranoid, should always be true! */ + if (szt < sizeof(tstr)) { /* Paranoid, should always be true! */ BLI_strncpy(tstr, uilng, szt + 1); /* +1 for '\0' char! */ + } } if (tstr[0]) { /* Because of some codes like sr_SR@latin... */ |