Revision 22ff51ee qemu-nbd.c
b/qemu-nbd.c | ||
---|---|---|
353 | 353 |
} |
354 | 354 |
|
355 | 355 |
if (socket == NULL) { |
356 |
sprintf(sockpath, SOCKET_PATH, basename(device)); |
|
356 |
snprintf(sockpath, sizeof(sockpath), SOCKET_PATH, |
|
357 |
basename(device)); |
|
357 | 358 |
socket = sockpath; |
358 | 359 |
} |
359 | 360 |
|
Also available in: Unified diff