forked from github/server
fix noxhmal. cvs hat gesponnen
This commit is contained in:
parent
48241fae72
commit
63faa991bf
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue