- (void) strcat(rawbuf, "/r");
- (void) strcat(rawbuf, &dp[1]);
+
+ /* Now add the "/r" to make it a raw device */
+ (void) strlcat(rawbuf, "/r", sizeof(rawbuf));
+
+ /* then copy the rest of the string (after the /) into place */
+ (void) strlcat(rawbuf, &dp[1], sizeof(rawbuf));