fix noxhmal. cvs hat gesponnen

This commit is contained in:
Enno Rehling 2002-05-05 09:37:43 +00:00
parent 48241fae72
commit 63faa991bf
1 changed files with 8 additions and 7 deletions

View File

@ -63,6 +63,7 @@
#include <base36.h>
#include <cvector.h>
#include <event.h>
#include <goodies.h>
#include <resolve.h>
#include <sql.h>
#include <vset.h>
@ -102,14 +103,14 @@ convert_orders(void)
for (;;) {
const char * c = getstrtoken();
if (c && *c) {
if (strchr(c, ' ')) {
strcat(buf, " \"");
strcat(buf, c);
strcat(buf, "\"");
} else {
char * p = strchr(c, ' ');
if (p) {
char zText[128];
c = strcpy(zText, c);
space_replace(zText, SPACE_REPLACEMENT);
}
strcat(buf, " ");
strcat(buf, c);
}
} else break;
}
set_string(&o->s, buf);