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

Collapse All | Expand All

(-)./mcidas.c (-1 / +1 lines)
Lines 63-69 Link Here
63
  minute = (time % 10000) / 100;
63
  minute = (time % 10000) / 100;
64
  second = (time % 100);
64
  second = (time % 100);
65
65
66
  sprintf(buf, "%d:%2.2d:%2.2d %s %d, %d (day %d)",
66
  snprintf(buf, 29, "%d:%2.2d:%2.2d %s %d, %d (day %d)",
67
	  hour, minute, second, month_info[month].name, day, year,
67
	  hour, minute, second, month_info[month].name, day, year,
68
	  (date % 1000));
68
	  (date % 1000));
69
  return(buf);
69
  return(buf);
(-)./reduce.c (-1 / +1 lines)
Lines 501-507 Link Here
501
501
502
  depth= colorsToDepth(n);
502
  depth= colorsToDepth(n);
503
  new_image= newRGBImage(image->width, image->height, depth);
503
  new_image= newRGBImage(image->width, image->height, depth);
504
  sprintf(buf, "%s (%d colors)", image->title, n);
504
  snprintf(buf, BUFSIZ - 1, "%s (%d colors)", image->title, n);
505
  new_image->title= dupString(buf);
505
  new_image->title= dupString(buf);
506
506
507
  /* calculate RGB table from each color area.  this should really calculate
507
  /* calculate RGB table from each color area.  this should really calculate
(-)./rotate.c (-1 / +1 lines)
Lines 70-76 Link Here
70
    { printf("  Rotating image by %d degrees...", degrees);
70
    { printf("  Rotating image by %d degrees...", degrees);
71
      fflush(stdout);
71
      fflush(stdout);
72
    }
72
    }
73
  sprintf(buf, "%s (rotated by %d degrees)", simage->title, degrees);
73
  snprintf(buf, BUFSIZ - 1, "%s (rotated by %d degrees)", simage->title, degrees);
74
74
75
  image1 = simage;
75
  image1 = simage;
76
  image2 = NULL;
76
  image2 = NULL;
(-)./tiff.c (-2 / +2 lines)
Lines 125-138 Link Here
125
  switch (info->photometric) {
125
  switch (info->photometric) {
126
  case PHOTOMETRIC_MINISBLACK:
126
  case PHOTOMETRIC_MINISBLACK:
127
    if (info->bitspersample > 1) {
127
    if (info->bitspersample > 1) {
128
      sprintf(buf, "%d-bit greyscale ", info->bitspersample);
128
      snprintf(buf, 31, "%d-bit greyscale ", info->bitspersample);
129
      return(buf);
129
      return(buf);
130
    }
130
    }
131
    else
131
    else
132
      return "white-on-black ";
132
      return "white-on-black ";
133
  case PHOTOMETRIC_MINISWHITE:
133
  case PHOTOMETRIC_MINISWHITE:
134
    if (info->bitspersample > 1) {
134
    if (info->bitspersample > 1) {
135
      sprintf(buf, "%d-bit greyscale ", info->bitspersample);
135
      snprintf(buf, 31, "%d-bit greyscale ", info->bitspersample);
136
      return(buf);
136
      return(buf);
137
    }
137
    }
138
    else
138
    else
(-)./window.c (-1 / +1 lines)
Lines 602-608 Link Here
602
  else {
602
  else {
603
    char def_geom[30];
603
    char def_geom[30];
604
604
605
    sprintf(def_geom, "%ux%u+0+0", image->width, image->height);
605
    snprintf(def_geom, 29, "%ux%u+0+0", image->width, image->height);
606
    XGeometry(disp, scrn, opt->info.geometry.string, def_geom, 0, 1, 1, 0, 0,
606
    XGeometry(disp, scrn, opt->info.geometry.string, def_geom, 0, 1, 1, 0, 0,
607
	      (int *)&winx, (int *)&winy, (int *)&winwidth, (int *)&winheight);
607
	      (int *)&winx, (int *)&winy, (int *)&winwidth, (int *)&winheight);
608
  }
608
  }
(-)./zio.c (-1 / +1 lines)
Lines 232-238 Link Here
232
            strcpy (s, "'");
232
            strcpy (s, "'");
233
            debug(("Filtering image through '%s'\n", filter->filter));
233
            debug(("Filtering image through '%s'\n", filter->filter));
234
            zf->type= ZPIPE;
234
            zf->type= ZPIPE;
235
            sprintf(buf, "%s %s", filter->filter, fname);
235
            snprintf(buf, BUFSIZ - 1, "%s %s", filter->filter, fname);
236
            lfree (fname);
236
            lfree (fname);
237
      if (! (zf->stream= popen(buf, "r"))) {
237
      if (! (zf->stream= popen(buf, "r"))) {
238
	lfree((byte *)zf->filename);
238
	lfree((byte *)zf->filename);
(-)./zoom.c (-4 / +4 lines)
Lines 63-85 Link Here
63
  if (!xzoom) {
63
  if (!xzoom) {
64
    if (verbose)
64
    if (verbose)
65
      printf("  Zooming image Y axis by %d%%...", yzoom);
65
      printf("  Zooming image Y axis by %d%%...", yzoom);
66
      sprintf(buf, "%s (Y zoom %d%%)", oimage->title, yzoom);
66
      snprintf(buf, BUFSIZ - 1, "%s (Y zoom %d%%)", oimage->title, yzoom);
67
  }
67
  }
68
  else if (!yzoom) {
68
  else if (!yzoom) {
69
    if (verbose)
69
    if (verbose)
70
      printf("  Zooming image X axis by %d%%...", xzoom);
70
      printf("  Zooming image X axis by %d%%...", xzoom);
71
    sprintf(buf, "%s (X zoom %d%%)", oimage->title, xzoom);
71
    snprintf(buf, BUFSIZ - 1, "%s (X zoom %d%%)", oimage->title, xzoom);
72
  }
72
  }
73
  else if (xzoom == yzoom) {
73
  else if (xzoom == yzoom) {
74
    if (verbose)
74
    if (verbose)
75
      printf("  Zooming image by %d%%...", xzoom);
75
      printf("  Zooming image by %d%%...", xzoom);
76
    sprintf(buf, "%s (%d%% zoom)", oimage->title, xzoom);
76
    snprintf(buf, BUFSIZ - 1, "%s (%d%% zoom)", oimage->title, xzoom);
77
  }
77
  }
78
  else {
78
  else {
79
    if (verbose)
79
    if (verbose)
80
      printf("  Zooming image X axis by %d%% and Y axis by %d%%...",
80
      printf("  Zooming image X axis by %d%% and Y axis by %d%%...",
81
	     xzoom, yzoom);
81
	     xzoom, yzoom);
82
    sprintf(buf, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
82
    snprintf(buf, BUFSIZ - 1, "%s (X zoom %d%% Y zoom %d%%)", oimage->title,
83
	    xzoom, yzoom);
83
	    xzoom, yzoom);
84
  }
84
  }
85
  if (verbose)
85
  if (verbose)

Return to bug 108365