]> granicus.if.org Git - apache/commitdiff
Reduce stack usage by 3k
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 11 Jun 2013 10:17:02 +0000 (10:17 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 11 Jun 2013 10:17:02 +0000 (10:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491724 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_mime_magic.c

index 80c585da9cb19bbb06d6c30480c820156212e837..2fba0cd4de34048330820416b39246ae0b529c7e 100644 (file)
@@ -1973,7 +1973,7 @@ static int ascmagic(request_rec *r, unsigned char *buf, apr_size_t nbytes)
 {
     int has_escapes = 0;
     unsigned char *s;
-    char nbuf[HOWMANY + 1];  /* one extra for terminating '\0' */
+    char nbuf[SMALL_HOWMANY + 1];  /* one extra for terminating '\0' */
     char *token;
     const struct names *p;
     int small_nbytes;