please add comment to explain how 28 comes - the size of string http://tizen.org/system/duid.

Actually, I'd rather to declare http://tizen.org/system/duid as `const char*` and compute size of before loop. This will avoid when the string is changed, you need change two places.