* build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
[gnulib.git] / lib / strftime.c
index 3be18a2..37c5123 100644 (file)
@@ -16,7 +16,7 @@
 
    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation,
-   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
@@ -120,7 +120,7 @@ extern char *tzname[];
    ? (a) >> (b)                \
    : (a) / (1 << (b)) - ((a) % (1 << (b)) < 0))
 
-/* Bound on length of the string representing an integer value or type T.
+/* Bound on length of the string representing an integer type or expression T.
    Subtract 1 for the sign bit if t is signed; log10 (2.0) < 146/485;
    add 1 for integer division truncation; add 1 more for a minus sign
    if needed.  */
@@ -780,9 +780,8 @@ my_strftime (CHAR_T *s, size_t maxsize, const CHAR_T *format,
            *u++ = format_char;
            *u = '\0';
            len = strftime (ubuf, sizeof ubuf, ufmt, tp);
-           if (len == 0)
-             return 0;
-           cpy (len - 1, ubuf + 1);
+           if (len != 0)
+             cpy (len - 1, ubuf + 1);
          }
          break;
 #endif