X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fiface-stream.c;h=207f5f02c8dec12cb984fe52395f79ff7fded7ca;hb=d22c11cec4e8c3390bfe6bf16ed07f5d073f0d4a;hp=36c6185a366bb38a608d70d084bf51cecec58610;hpb=e8ee9e1536b3fa2e69f5537a90f5e034e9529248;p=palacios.git diff --git a/linux_module/iface-stream.c b/linux_module/iface-stream.c index 36c6185..207f5f0 100644 --- a/linux_module/iface-stream.c +++ b/linux_module/iface-stream.c @@ -246,7 +246,8 @@ static void * palacios_stream_open(struct v3_stream * v3_stream, const char * na stream->guest = guest; stream->connected = 0; - strncpy(stream->name, name, STREAM_NAME_LEN - 1); + strncpy(stream->name, name, STREAM_NAME_LEN); + stream->name[STREAM_NAME_LEN-1] = 0; init_waitqueue_head(&(stream->user_poll_queue)); palacios_spinlock_init(&(stream->lock));