gustavonihei commented on a change in pull request #5856:
URL: https://github.com/apache/incubator-nuttx/pull/5856#discussion_r835787782



##########
File path: fs/rpmsgfs/rpmsgfs_client.c
##########
@@ -727,11 +727,13 @@ int rpmsgfs_client_rename(FAR void *handle, FAR const 
char *oldpath,
   size_t len;
   size_t oldlen;
   size_t newlen;
+  size_t alignlen;
   uint32_t space;
 
-  oldlen = strlen(oldpath) + 1;
-  newlen = strlen(newpath) + 1;
-  len    = sizeof(*msg) + oldlen + newlen;
+  oldlen   = strlen(oldpath) + 1;
+  alignlen = (oldlen + 0x7) & ~0x7;

Review comment:
       How about creating a macro like 
https://github.com/apache/incubator-nuttx/blob/f623ac0f13ab893ef0c209325d2ac1ff85f405ee/arch/risc-v/src/esp32c3/esp32c3_dma.c#L62?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to