]> granicus.if.org Git - php/commitdiff
Fixed blob ID format
authorArd Biesheuvel <abies@php.net>
Thu, 3 Jun 2004 12:00:23 +0000 (12:00 +0000)
committerArd Biesheuvel <abies@php.net>
Thu, 3 Jun 2004 12:00:23 +0000 (12:00 +0000)
ext/interbase/ibase_blobs.c

index f1f71338468086de45135cf563911c6bceb49b49..ac5502c1c8f3bf09faa82570aefeaa7df506d1a3 100644 (file)
@@ -78,10 +78,10 @@ char *_php_ibase_quad_to_string(ISC_QUAD const qd) /* {{{ */
 
        /* shortcut for most common case */
        if (sizeof(ISC_QUAD) == sizeof(ISC_UINT64)) {
-               sprintf(result, BLOB_ID_MASK, *(ISC_UINT64*)(void *) &qd);
+               sprintf(result, "0x%0*" LL_MASK "x", 16, *(ISC_UINT64*)(void *) &qd);
        } else {
                ISC_UINT64 res = ((ISC_UINT64) qd.gds_quad_high << 0x20) | qd.gds_quad_low;
-               sprintf(result, BLOB_ID_MASK, res);
+               sprintf(result, "0x%0*" LL_MASK "x", 16, res);
        }
        result[BLOB_ID_LEN] = '\0';
        return result;