Skip to content

Commit

Permalink
Fix typo, remove commented code
Browse files Browse the repository at this point in the history
Spelling is hard
  • Loading branch information
kontakt committed Aug 23, 2016
1 parent 4c0b2be commit 54f39a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/a2_strdup.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
char *a2_strdup(const char *str) {
size_t len = strlen(str) + 1;
char *dup = malloc(len);
//dup[len] = '\0';
strcpy(dup, str);
return dup;
}
2 changes: 1 addition & 1 deletion src/card_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CardLayer *card_layer_create(GRect frame) {
layer_add_child(card_layer->layer, (Layer *)card_layer->name_text_layer);
#ifdef PBL_ROUND
// Note: The text_layer_enable_screen_text_flow_and_paging() function must be called after
// the TextLayer is added to the view hierachy (i.e.: after using layer_add_child()),
// the TextLayer is added to the view hierarchy (i.e.: after using layer_add_child()),
// or else it will have no effect.
text_layer_enable_screen_text_flow_and_paging(card_layer->name_text_layer, 2);
#endif
Expand Down

0 comments on commit 54f39a2

Please sign in to comment.