Skip to content

Commit

Permalink
[configfs] Write correct buffer in configfs. Fixes JB#51896
Browse files Browse the repository at this point in the history
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@jolla.com>
  • Loading branch information
mlehtima committed Nov 4, 2020
1 parent 3f36a60 commit bc97d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-configfs.c
Expand Up @@ -642,7 +642,7 @@ configfs_write_file(const char *path, const char *text)
goto EXIT;
}

int rc = write(fd, text, size);
int rc = write(fd, buff, size);
if( rc == -1 ) {
log_err("%s: write failure: %m", path);
goto EXIT;
Expand Down

0 comments on commit bc97d1f

Please sign in to comment.