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