All pastes #384736 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-07 08:48 UTC
rendered paste body
const unsigned char *px, unsigned length) {
        char method[16];
        ...
        x=0;
        while (i<length && !isspace(px[i])) {
                if (x < sizeof(method) -1) {
                        method[x++] = (char)toupper(px[i++]);
                        method[x] = '\0';
                }
        }