Index: uspace/lib/c/generic/devman.c
===================================================================
--- uspace/lib/c/generic/devman.c	(revision 431d6d6a5bc501f28e40f42930d836850a1b2714)
+++ uspace/lib/c/generic/devman.c	(revision e765ccb6cde2fa56a59892f7298c9f2a0ec6e244)
@@ -415,9 +415,15 @@
 	}
 
+	/* To be on the safe-side. */
 	path[path_size - 1] = 0;
 
-	if (IPC_GET_ARG2(data_request_call) >= path_size) {
+	size_t transferred_size = IPC_GET_ARG2(data_request_call);
+
+	if (transferred_size >= path_size) {
 		return ELIMIT;
 	}
+
+	/* Terminate the string (trailing 0 not send over IPC). */
+	path[transferred_size] = 0;
 
 	return EOK;
