Skip to content

Commit

Permalink
avoid compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Mar 31, 2023
1 parent 88d93e6 commit a8011d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Linux/mod_dbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static const char* introspect_xml =
static char *my_dbus_strdup(char *str) {
if(str == NULL)
return NULL;
int len = strlen(str);
int len = my_strlen(str);
char *ans = dbus_malloc(len + 1);
strncpy(ans, str, len);
return ans;
Expand Down

0 comments on commit a8011d6

Please sign in to comment.