diff options
author | Jim McDonough <jmcd@samba.org> | 2004-05-07 15:21:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:29 -0500 |
commit | ba8a59dbf43a18bb93007b22758cfe5f9882dd3e (patch) | |
tree | 1012798a8390491854257df362a36c059f63d244 /source3/printing | |
parent | 72d124af9e63755782ea3c4366a7c295d25ff683 (diff) | |
download | samba-ba8a59dbf43a18bb93007b22758cfe5f9882dd3e.tar.gz samba-ba8a59dbf43a18bb93007b22758cfe5f9882dd3e.tar.bz2 samba-ba8a59dbf43a18bb93007b22758cfe5f9882dd3e.zip |
r555: Fix big-endian storage of jobids in jobs_changed list. Found during
debugging of 1279
(This used to be commit 7c1cfb16c0b2f0128afca0b01036567253a3f92a)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/printing.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index e4ef1f52d0..fd123267d1 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -1905,10 +1905,12 @@ static BOOL allocate_print_jobid(struct tdb_print_db *pdb, int snum, const char static BOOL add_to_jobs_changed(struct tdb_print_db *pdb, uint32 jobid) { TDB_DATA data, key; + uint32 store_jobid; key.dptr = "INFO/jobs_changed"; key.dsize = strlen(key.dptr); - data.dptr = (char *)&jobid; + SIVAL(&store_jobid, 0, jobid); + data.dptr = (char *)&store_jobid; data.dsize = 4; DEBUG(10,("add_to_jobs_changed: Added jobid %u\n", (unsigned int)jobid )); |