]> git.pond.sub.org Git - empserver/commitdiff
(servercmd): Parsed BTUs into nmin and minutes into nbtu. Fix. No
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 7 May 2005 08:47:32 +0000 (08:47 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 7 May 2005 08:47:32 +0000 (08:47 +0000)
functional change.

src/client/servcmd.c

index 23dc475167a8a98a556be8075e0f8d60e1678c86..073cf573623b83286a22438036d51769a2d801ed 100644 (file)
@@ -83,11 +83,11 @@ servercmd(struct ioqueue *ioq, FILE *auxfi)
            code = *buf - '0';
        switch (code) {
        case C_PROMPT:
-           if (sscanf(p, "%d %d", &nbtu, &nmin) != 2) {
+           if (sscanf(p, "%d %d", &nmin, &nbtu) != 2) {
                fprintf(stderr, "prompt: bad server prompt %s\n", p);
            }
            mode = code;
-           sprintf(the_prompt, "[%d:%d] Command : ", nbtu, nmin);
+           sprintf(the_prompt, "[%d:%d] Command : ", nmin, nbtu);
            prompt(auxfi);
            break;
        case C_REDIR: