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

Collapse All | Expand All

(-)groff-1.20.1/src/roff/troff/env.cpp (-6 / +7 lines)
Lines 2213-2226 Link Here
2213
     */
2213
     */
2214
    if (curdiv == topdiv && topdiv->before_first_page)
2214
    if (curdiv == topdiv && topdiv->before_first_page)
2215
      topdiv->begin_page();
2215
      topdiv->begin_page();
2216
    macro *m = new macro;
2216
2217
    m->append_str("devtag:");
2217
    macro m;
2218
    m.append_str("devtag:");
2218
    for (const char *p = nm; *p; p++)
2219
    for (const char *p = nm; *p; p++)
2219
      if (!invalid_input_char((unsigned char)*p))
2220
      if (!invalid_input_char((unsigned char)*p))
2220
	m->append(*p);
2221
	m.append(*p);
2221
    m->append(' ');
2222
    m.append(' ');
2222
    m->append_int(i);
2223
    m.append_int(i);
2223
    return new special_node(*m);
2224
    return new special_node(m);
2224
  }
2225
  }
2225
  return 0;
2226
  return 0;
2226
}
2227
}
(-)groff-1.20.1/src/roff/troff/input.cpp (+5 lines)
Lines 530-535 Link Here
530
{
530
{
531
  if (t->is_diversion) {
531
  if (t->is_diversion) {
532
    div_level--;
532
    div_level--;
533
    if (diversion_state)
534
      delete diversion_state;
533
    diversion_state = t->diversion_state;
535
    diversion_state = t->diversion_state;
534
  }
536
  }
535
}
537
}
Lines 4367-4372 Link Here
4367
	  args += c;
4369
	  args += c;
4368
      if (i != limit)
4370
      if (i != limit)
4369
	args += ' ';
4371
	args += ' ';
4372
      delete p;
4370
    }
4373
    }
4371
    if (limit > 0) {
4374
    if (limit > 0) {
4372
      args += '\0';
4375
      args += '\0';
Lines 4388-4393 Link Here
4388
      args += '"';
4391
      args += '"';
4389
      if (i != limit)
4392
      if (i != limit)
4390
	args += ' ';
4393
	args += ' ';
4394
      delete p;
4391
    }
4395
    }
4392
    if (limit > 0) {
4396
    if (limit > 0) {
4393
      args += '\0';
4397
      args += '\0';
Lines 4407-4412 Link Here
4407
      }
4411
      }
4408
      if (input_stack::space_follows_arg(i))
4412
      if (input_stack::space_follows_arg(i))
4409
	args += ' ';
4413
	args += ' ';
4414
      delete p;
4410
    }
4415
    }
4411
    if (limit > 0) {
4416
    if (limit > 0) {
4412
      args += '\0';
4417
      args += '\0';

Return to bug 294045