You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-packaging/freebsd/dependencies/imlib/files/patch-fix-potential-buffer-...

20 lines
567 B

Index: b/Imlib/load.c
===================================================================
--- a/Imlib/load.c
+++ b/Imlib/load.c
@@ -1974,11 +1974,11 @@
if (iden[0])
{
#ifndef __EMX__
- strncat(fil, ":", sizeof(fil) - strlen(fil));
+ strncat(fil, ":", sizeof(fil) - strlen(fil) - 1);
#else
- strncat(fil, ";", sizeof(fil) - strlen(fil));
+ strncat(fil, ";", sizeof(fil) - strlen(fil) - 1);
#endif
- strncat(fil, iden, sizeof(fil) - strlen(fil));
+ strncat(fil, iden, sizeof(fil) - strlen(fil) - 1);
}
}
im->mod.gamma = id->mod.gamma;