summaryrefslogtreecommitdiff
path: root/src/general.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2009-07-21 20:23:08 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-07-21 20:23:08 +0200
commit34ba9fa9083c655e5ba06cecd46da157eb07d980 (patch)
tree0e0674306ce5aab0c4bb9058c417b0b1197369fe /src/general.c
parent6fda988f360b3145d5772b6964f336dd652357ea (diff)
Correctly handle the order of items
Diffstat (limited to 'src/general.c')
-rw-r--r--src/general.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/general.c b/src/general.c
index 4016ecd..4c110e4 100644
--- a/src/general.c
+++ b/src/general.c
@@ -63,8 +63,8 @@ void die(const char *fmt, ...) {
* Otherwise, the buffer size would have to be increased.
*
*/
-char *concat(const char *str1, const char *str2) {
- static char concatbuf[32];
- (void)snprintf(concatbuf, sizeof(concatbuf), "%s%s", str1, str2);
- return concatbuf;
+char *order_to_str(int number, char *name) {
+ static char buf[32];
+ (void)snprintf(buf, sizeof(buf), "%d%s", number, name);
+ return buf;
}