Mercurial > hg > early-roguelike
comparison arogue7/util.c @ 283:d71e5e1f49cf
Fix a few more compiler warnings.
author | John "Elwin" Edwards |
---|---|
date | Mon, 18 Sep 2017 19:36:14 -0400 |
parents | e1cd27c5464f |
children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
282:8b6aba552f6f | 283:d71e5e1f49cf |
---|---|
1179 * copy string using unctrl for things | 1179 * copy string using unctrl for things |
1180 */ | 1180 */ |
1181 void | 1181 void |
1182 strucpy(char *s1, char *s2, int len) | 1182 strucpy(char *s1, char *s2, int len) |
1183 { | 1183 { |
1184 register char *sp; | 1184 const char *sp; |
1185 | 1185 |
1186 while (len--) | 1186 while (len--) |
1187 { | 1187 { |
1188 strcpy(s1, (sp = unctrl(*s2++))); | 1188 strcpy(s1, (sp = unctrl(*s2++))); |
1189 s1 += strlen(sp); | 1189 s1 += strlen(sp); |