Hi,
It seems that sprintf() is modifying at least two bytes from the source and I 
have duplicate this with different varibles.
For instance, I have a mac address defined as unsigned char [6]:
Doing the following sets the environment variable correctly, however bytes [0] 
and [1], are modified at the source.

sprintf(env_ethaddr,"%02X:%02X:%02X:%02X:%02X:%02X", MACAddress[0], 
MACAddress[1],                                                        
MACAddress[2], MACAddress[3],                                                   
     
MACAddress[4], MACAddress[5]);

Has anyone noticed this before?
I don't think the machine matters but I am building for an arm at91.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to