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.
13 lines
599 B
13 lines
599 B
diff -up ./dev_hash.c.ori ./dev_hash.c
|
|
--- ./dev_hash.c.ori 2023-05-02 10:40:45.509862165 +0200
|
|
+++ ./dev_hash.c 2023-05-02 10:40:48.266876499 +0200
|
|
@@ -147,7 +147,7 @@ static void setup_devices(char *dirname)
|
|
{
|
|
char *fullname = (char *) alloca ((strlen (dirname)
|
|
+ NAMLEN (dp)
|
|
- + 1) * sizeof (char));
|
|
+ + 2) * sizeof (char)); /* slash + null; Fedora BZ#2190057 */
|
|
|
|
(void)sprintf (fullname, "%s/%s", dirname, dp->d_name);
|
|
if (stat (fullname, &sp))
|