Mercurial > hg > early-roguelike
comparison arogue5/util.c @ 283:d71e5e1f49cf
Fix a few more compiler warnings.
author | John "Elwin" Edwards |
---|---|
date | Mon, 18 Sep 2017 19:36:14 -0400 |
parents | 56e748983fa8 |
children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
282:8b6aba552f6f | 283:d71e5e1f49cf |
---|---|
837 * copy string using unctrl for things | 837 * copy string using unctrl for things |
838 */ | 838 */ |
839 void | 839 void |
840 strucpy(char *s1, char *s2, int len) | 840 strucpy(char *s1, char *s2, int len) |
841 { | 841 { |
842 register char *sp; | 842 const char *sp; |
843 | 843 |
844 while (len--) | 844 while (len--) |
845 { | 845 { |
846 strcpy(s1, (sp = unctrl(*s2))); | 846 strcpy(s1, (sp = unctrl(*s2))); |
847 s1 += strlen(sp); | 847 s1 += strlen(sp); |