1 # Ignore leading whitespace in .cvsrc files. Closes: #212415. Thanks
2 # to James R. Van Zandt for the patch.
3 diff -ruN cvs-1.12.13-old/src/cvsrc.c cvs-1.12.13/src/cvsrc.c
4 --- cvs-1.12.13-old/src/cvsrc.c 2005-03-16 23:52:14.000000000 +0800
5 +++ cvs-1.12.13/src/cvsrc.c 2006-02-26 18:25:18.000000000 +0800
7 size_t line_chars_allocated;
18 + for (white_len=0; isspace(line[white_len]); white_len++)
21 /* stop if we match the current command */
22 - if (!strncmp (line, cmdname, command_len)
23 - && isspace ((unsigned char) *(line + command_len)))
24 + if (!strncmp (line + white_len, cmdname, command_len)
25 + && isspace ((unsigned char) *(line + white_len + command_len)))
32 /* skip over command in the options line */
33 - for (optstart = strtok (line + command_len, "\t \n");
34 + for (optstart = strtok (line + white_len + command_len, "\t \n");
36 optstart = strtok (NULL, "\t \n"))