diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-06-07 09:40:26 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 04:19:42 +0200 |
commit | 62bcb16ba7fdda8f87d5b698546c4b3ba4b721cd (patch) | |
tree | 664b12659dcaf223c6141e3b6e1f53b8d516e922 /src/z-form.c | |
parent | 41b65b07a5ac89bad9533487b2233d309e7fc86d (diff) |
Remove a usage of vstrnfmt()
Diffstat (limited to 'src/z-form.c')
-rw-r--r-- | src/z-form.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/z-form.c b/src/z-form.c index 2cd9ebe9..ab195c76 100644 --- a/src/z-form.c +++ b/src/z-form.c @@ -531,19 +531,7 @@ uint vstrnfmt(char *buf, uint max, cptr fmt, va_list vp) /* Mega-Hack -- handle "capitilization" */ if (do_xtra) { - /* Now append "tmp" to "buf" */ - for (q = 0; tmp[q]; q++) - { - /* Notice first non-space */ - if (!isspace(tmp[q])) - { - /* Capitalize if possible */ - if (islower(tmp[q])) tmp[q] = toupper(tmp[q]); - - /* Done */ - break; - } - } + capitalize(tmp); } /* Now append "tmp" to "buf" */ |