good for merge

thanks
-steve

On Thu, 2009-10-15 at 11:57 +1300, angus salkeld wrote:
> Avoid array out of bound error.
> 
> thanks Steve for debugging.
> (sees to only crash on x86_64)
> 
> -Angus
> 
> Index: exec/coroipcs.c
> ===================================================================
> --- exec/coroipcs.c   (revision 2528)
> +++ exec/coroipcs.c   (working copy)
> @@ -1457,7 +1457,7 @@
>  
>       /* copy the name */
>       strncpy (out_name, name, name_len);
> -     out_name[name_len] = '\0';
> +     out_name[name_len - 1] = '\0';
>       return out_name;
>  }
>  
> 
> 
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to