]> andersk Git - moira.git/commitdiff
fix some coding errors in the table/service caching table
authormar <mar>
Fri, 1 Sep 1989 15:02:36 +0000 (15:02 +0000)
committermar <mar>
Fri, 1 Sep 1989 15:02:36 +0000 (15:02 +0000)
server/increment.qc

index 3f7771cf11eb0dc5ca2b42beb66aa5561013265d..aad7611aa099bd13cf562cfde13cf0e029942e78 100644 (file)
@@ -358,15 +358,15 @@ int argc;
 ##     retrieve (tab = incremental.table, serv = incremental.service) {
            c = (struct inc_cache *)malloc(sizeof(struct inc_cache));
            c->next = cache;
-           c->table = strsave(tab);
-           c->service = strsave(serv);
+           c->table = strsave(strtrim(tab));
+           c->service = strsave(strtrim(serv));
            cache = c;
 ##     }
     }
 
     for (c = cache; c; c = c->next) {
        if (!strcmp(c->table, argv[1])) {
-           sprintf(prog, "/u1/sms/bin/%s.incr", c->table);
+           sprintf(prog, "/u1/sms/bin/%s.incr", c->service);
            argv[0] = prog;
            argv[argc] = 0;
            pid = vfork();
This page took 0.050103 seconds and 5 git commands to generate.