/[baselayout]/trunk/src/librc-daemon.c
Gentoo

Diff of /trunk/src/librc-daemon.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2549 Revision 2550
446 mexec = rc_xmalloc (sizeof (char *) * i); 446 mexec = rc_xmalloc (sizeof (char *) * i);
447 snprintf (mexec, i, "exec=%s", exec); 447 snprintf (mexec, i, "exec=%s", exec);
448 448
449 if (indx > 0) 449 if (indx > 0)
450 { 450 {
451 file = rc_xmalloc (sizeof (char *) * 10); 451 int len = sizeof (char *) * 10;
452 file = rc_xmalloc (len);
452 snprintf (file, sizeof (file), "%03d", indx); 453 snprintf (file, len, "%03d", indx);
453 retval = _match_daemon (dirpath, file, mexec, NULL, NULL); 454 retval = _match_daemon (dirpath, file, mexec, NULL, NULL);
454 free (file); 455 free (file);
455 } 456 }
456 else 457 else
457 { 458 {

Legend:
Removed from v.2549  
changed lines
  Added in v.2550

  ViewVC Help
Powered by ViewVC 1.1.20