Skip to content

Commit 07f96e1

Browse files
committed
typo fix
1 parent 7d40bae commit 07f96e1

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

ext/gd/libgd/gd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3188,7 +3188,7 @@ int gdImagePaletteToTrueColor(gdImagePtr src)
31883188
const unsigned int sx = gdImageSX(src);
31893189

31903190
// Note: do not revert back to gdMalloc() below ; reason here,
3191-
// due to a bug with a certain memory_limit INI value treshold,
3191+
// due to a bug with a certain memory_limit INI value threshold,
31923192
// imagepalettetotruecolor crashes with even unrelated ZendMM allocations.
31933193
// See GH-17772 for a use case.
31943194
src->tpixels = (int **) gdCalloc(sy, sizeof(int *));

ext/gd/libgd/gd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extern "C" {
5050
pixels are represented by integers, which
5151
must be 32 bits wide or more.
5252
53-
True colors are repsented as follows:
53+
True colors are represented as follows:
5454
5555
ARGB
5656

ext/gd/libgd/gd_bmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static int _gdImageBmpCtx(gdImagePtr im, gdIOCtxPtr out, int compression){
157157
gdBMPPutInt(out, (compression ? BMP_BI_RLE8 : BMP_BI_RGB)); /* compression */
158158
gdBMPPutInt(out, bitmap_size); /* image size */
159159
gdBMPPutInt(out, 0); /* H resolution */
160-
gdBMPPutInt(out, 0); /* V ressolution */
160+
gdBMPPutInt(out, 0); /* V resolution */
161161
gdBMPPutInt(out, im->colorsTotal); /* colours used */
162162
gdBMPPutInt(out, 0); /* important colours */
163163

ext/gd/libgd/gd_interpolation.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef struct
113113
{
114114
double *Weights; /* Normalized weights of neighboring pixels */
115115
int Left,Right; /* Bounds of source pixels window */
116-
} ContributionType; /* Contirbution information for a single pixel */
116+
} ContributionType; /* Contribution information for a single pixel */
117117

118118
typedef struct
119119
{
@@ -481,7 +481,7 @@ static double filter_hermite(const double x1)
481481
return 0.0;
482482
}
483483

484-
/* Trangle filter, default radius 1 */
484+
/* Triangle filter, default radius 1 */
485485
static double filter_triangle(const double x1)
486486
{
487487
const double x = x1 < 0.0 ? -x1 : x1;
@@ -630,7 +630,7 @@ static double filter_welsh(const double x)
630630
#endif
631631

632632

633-
/* keep it for future usage for affine copy over an existing image, targetting fix for 2.2.2 */
633+
/* keep it for future usage for affine copy over an existing image, targeting fix for 2.2.2 */
634634
#if 0
635635
/* Copied from upstream's libgd */
636636
static inline int _color_blend (const int dst, const int src)

ext/gd/libgd/gd_tga.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ int read_image_tga( gdIOCtx *ctx, oTga *tga )
236236
if (tga->imagetype != TGA_TYPE_RGB && tga->imagetype != TGA_TYPE_RGB_RLE)
237237
return -1;
238238

239-
/*! \brief Allocate memmory for image block
239+
/*! \brief Allocate memory for image block
240240
* Allocate a chunk of memory for the image block to be passed into.
241241
*/
242242
tga->bitmap = (int *) gdMalloc(image_block_size * sizeof(int));

ext/gd/libgd/gd_tga.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ typedef struct oTga_ {
2323
uint8_t alphabits; // alpha bits (low 4bits of header 17)
2424
uint8_t fliph; // horizontal or vertical
2525
uint8_t flipv; // flip
26-
char *ident; // identifcation tag string
26+
char *ident; // identification tag string
2727
int *bitmap; // bitmap data
2828

2929
} oTga;

ext/gd/libgd/gdft.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static void *fontFetch (char **error, void *key)
400400
fontlist = gdEstrdup(a->fontlist);
401401

402402
/*
403-
* Must use gd_strtok_r becasuse strtok() isn't thread safe
403+
* Must use gd_strtok_r because strtok() isn't thread safe
404404
*/
405405
for (name = gd_strtok_r (fontlist, LISTSEPARATOR, &strtok_ptr); name; name = gd_strtok_r (0, LISTSEPARATOR, &strtok_ptr)) {
406406
char *strtok_ptr_path;

0 commit comments

Comments
 (0)