~zulcss/ubuntu/lucid/likewise-open/likewise-open-sru

« back to all changes in this revision

Viewing changes to samba/source/lib/replace/snprintf.c

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-08-27 08:56:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080827085620-5q0f58b9qtog9myq
Tags: 4.1.0.2956-0ubuntu1
* missing-likewise-logo.diff: removed
* fixed copyright notice
* updated Standards-Version to 3.8.0
* removed path from command in prerm
* removed stop in S runlevel

Show diffs side-by-side

added added

removed removed

Lines of Context:
1108
1108
}
1109
1109
 
1110
1110
static struct pr_chunk *new_chunk(void) {
 
1111
        LDOUBLE fvalue_temp = 0;
1111
1112
        struct pr_chunk *new_c = (struct pr_chunk *)malloc(sizeof(struct pr_chunk));
1112
1113
 
1113
1114
        if (!new_c)
1124
1125
        new_c->start = 0;
1125
1126
        new_c->len = 0;
1126
1127
        new_c->value = 0;
1127
 
        new_c->fvalue = 0;
 
1128
        /* new_c->fvalue may not be aligned, so instead write to a temporary
 
1129
         * variable and copy it over with memcpy. */
 
1130
        memcpy(&new_c->fvalue, &fvalue_temp, sizeof(fvalue_temp));
1128
1131
        new_c->strvalue = NULL;
1129
1132
        new_c->pnum = NULL;
1130
1133
        new_c->next = NULL;