]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/patches/testing/breg.c
ebl fix compilation
[bacula/bacula] / bacula / patches / testing / breg.c
index 9d53f1a7fefa71343a22a25764771c5520536b23..7468c6572d0a17f04ace7d84e6113604ea4ea8ea 100644 (file)
@@ -7,7 +7,7 @@
  *
  */
 /*
-   Bacula® - The Network Backup Solution
+   Bacula\81Â\81® - The Network Backup Solution
 
    Copyright (C) 2006-2006 Free Software Foundation Europe e.V.
 
@@ -28,9 +28,9 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   Bacula® is a registered trademark of John Walker.
+   Bacula\81Â\81® is a registered trademark of John Walker.
    The licensor of Bacula is the Free Software Foundation Europe
-   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Z\81Ã\81¼rich,
    Switzerland, email:ftf@fsfeurope.org.
 */
 
@@ -383,10 +383,11 @@ int bregexp_get_build_where_size(char *strip_prefix,
     * add_prefix   = !^!add_prefix!          5 bytes
     * add_suffix   = !([^/])$!$1add_suffix! 13 bytes
     */
-   int str_size = (strip_prefix?strlen(strip_prefix)+4:0 +
-                  add_prefix?strlen(add_prefix)+5:0     + /* escape + 3*, + \0 */ 
-                  add_suffix?strlen(add_suffix)+14:0     )     * 2  + 3   + 1;
+   int str_size = ((strip_prefix?strlen(strip_prefix)+4:0) +
+                  (add_prefix?strlen(add_prefix)+5    :0) + /* escape + 3*, + \0 */ 
+                  (add_suffix?strlen(add_suffix)+14   :0) )   * 2     + 3   + 1;
 
+   Dmsg1(1, "bregexp_get_build_where_size = %i\n", str_size);
    return str_size;
 }
 
@@ -432,7 +433,7 @@ char *bregexp_build_where(char *dest, int str_size,
 
    free_pool_memory(str_tmp);
 
-   return ret;
+   return dest;
 }