Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 721566 | Differences between
and this patch

Collapse All | Expand All

(-)a/commands.c (-4 / +4 lines)
Lines 10-25 int commands(ss,c) Link Here
10
substdio *ss;
10
substdio *ss;
11
struct commands *c;
11
struct commands *c;
12
{
12
{
13
  int i;
13
  unsigned int i;
14
  char *arg;
14
  char *arg;
15
15
16
  for (;;) {
16
  for (;;) {
17
    if (!stralloc_copys(&cmd,"")) return -1;
17
    if (!stralloc_copys(&cmd,"")) return -1;
18
18
19
    for (;;) {
19
    for (;;) {
20
      int j;
20
      if (!stralloc_readyplus(&cmd,1)) return -1;
21
      if (!stralloc_readyplus(&cmd,1)) return -1;
21
      i = substdio_get(ss,cmd.s + cmd.len,1);
22
      j = substdio_get(ss,cmd.s + cmd.len,1);
22
      if (i != 1) return i;
23
      if (j != 1) return j;
23
      if (cmd.s[cmd.len] == '\n') break;
24
      if (cmd.s[cmd.len] == '\n') break;
24
      ++cmd.len;
25
      ++cmd.len;
25
    }
26
    }
26
- 

Return to bug 721566