duplicate spaces in ROUTE order.
This commit is contained in:
Enno Rehling 2009-10-22 09:36:56 +00:00
parent e4c2bb2d30
commit dae2a22b35
1 changed files with 4 additions and 2 deletions

View File

@ -1043,8 +1043,10 @@ cycle_route(order * ord, unit *u, int gereist)
assert(!pause); assert(!pause);
if (!pause) { if (!pause) {
const char * loc = LOC(lang, shortdirections[d]); const char * loc = LOC(lang, shortdirections[d]);
bytes = (int)strlcpy(bufp, " ", size); if (bufp!=tail) {
if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER(); bytes = (int)strlcpy(bufp, " ", size);
if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER();
}
bytes = (int)strlcpy(bufp, loc, size); bytes = (int)strlcpy(bufp, loc, size);
if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER(); if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER();
} }