[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Convert hvmloader sprintf() into snprintf()
> > This doesn't return the correct value according the C99. From the > snprintf() man page: > > "The functions snprintf() and vsnprintf() do not write more than > size bytes (including the trailing '\0'). If the output was > truncated due to this limit then the return value is the number of > characters (not including the trailing '\0') which would have been > written to the final string if enough space had been available. > Thus, a return value of size or more means that the output > was truncated." > ...and that matters because? I didn't say anywhere that the implementation was C99 compliant. Paul _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |