sesser          Thu Dec 12 16:30:39 2002 EDT

  Modified files:              
    /php4/ext/sybase    php_sybase_db.c 
  Log:
  remove extra char in case of binary/money fields
  
  
  
Index: php4/ext/sybase/php_sybase_db.c
diff -u php4/ext/sybase/php_sybase_db.c:1.40 php4/ext/sybase/php_sybase_db.c:1.41
--- php4/ext/sybase/php_sybase_db.c:1.40        Tue Dec 10 15:18:24 2002
+++ php4/ext/sybase/php_sybase_db.c     Thu Dec 12 16:30:38 2002
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: php_sybase_db.c,v 1.40 2002/12/10 20:18:24 sesser Exp $ */
+/* $Id: php_sybase_db.c,v 1.41 2002/12/12 21:30:38 sesser Exp $ */
 
 
 #ifdef HAVE_CONFIG_H
@@ -747,7 +747,7 @@
                
                                /* get rid of trailing spaces */
                                p = res_buf + res_length;
-                               while (p >= res_buf && *p == ' ') {
+                               while (p >= res_buf && (*p == ' ' || *p == '\0')) {
                                        p--;
                                }
                                *(++p) = 0; /* put a trailing NULL */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to