Fix unreproducible build
[mmh] / sbr / m_name.c
1 /*
2 ** m_name.c -- return a message number as a string (in static memory)
3 **
4 ** This code is Copyright (c) 2002, by the authors of nmh.  See the
5 ** COPYRIGHT file in the root directory of the nmh distribution for
6 ** complete copyright information.
7 */
8
9 #include <h/mh.h>
10
11 static char name[BUFSIZ];
12
13
14 char *
15 m_name(int num)
16 {
17         if (num <= 0) {
18                 return "?";
19         }
20
21         snprintf(name, sizeof(name), "%d", num);
22         return name;
23 }