Re: [PATCH] MIPS: move mips_{set,get}_machine_name() to a more generic place

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 4/12/13 7:34 PM, schrieb Gabor Juhos:
Any specific reason why you are using snprintf? If someone would call this with
format characters in the 'name' that would cause weird things.
strncpy makes more sense indeed. the code i copied used strdup, which failed as memory was not available at the time the code ran




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux