diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-30 14:30:33 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-30 14:30:33 -0400 |
commit | 87388b302e8c9cb6a5eb78d59f792a60fe6c675f (patch) | |
tree | 5b04cac6eaf80508a5efa77ebeb4836a33fd970a /core/Messenger.c | |
parent | 2d3113699452194d9d5bc1ad7145a4e007a11fc6 (diff) | |
parent | dc57b779d2e3d1df836698cd119a3890ffecf86d (diff) |
Merge branch 'master' of https://github.com/blackwolf12333/ProjectTox-Core into blackwolf12333-master
Also fixed his pull request.
Diffstat (limited to 'core/Messenger.c')
-rw-r--r-- | core/Messenger.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Messenger.c b/core/Messenger.c index 4c76dd30..3a287363 100644 --- a/core/Messenger.c +++ b/core/Messenger.c | |||
@@ -240,6 +240,15 @@ int setname(uint8_t * name, uint16_t length) | |||
240 | return 0; | 240 | return 0; |
241 | } | 241 | } |
242 | 242 | ||
243 | /* get our nickname | ||
244 | put it in name | ||
245 | return the length of the name */ | ||
246 | uint16_t getself_name(uint8_t *name) | ||
247 | { | ||
248 | memcpy(name, self_name, self_name_length); | ||
249 | return self_name_length; | ||
250 | } | ||
251 | |||
243 | /* get name of friendnumber | 252 | /* get name of friendnumber |
244 | put it in name | 253 | put it in name |
245 | name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH bytes. | 254 | name needs to be a valid memory location with a size of at least MAX_NAME_LENGTH bytes. |