tree-wide: make use of new STRLEN() macro everywhere (#7639)
Let's employ coccinelle to do this for us. Follow-up for #7625.
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ int socket_from_display(const char *display, char **path) {
|
||||
|
||||
k = strspn(display+1, "0123456789");
|
||||
|
||||
f = new(char, strlen("/tmp/.X11-unix/X") + k + 1);
|
||||
f = new(char, STRLEN("/tmp/.X11-unix/X") + k + 1);
|
||||
if (!f)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user